mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 解决打包之后无法加载页面的问题
This commit is contained in:
parent
db815661e8
commit
3cf01f0c51
@ -11,7 +11,7 @@ function pathResolve(dir: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default ({ mode }) => defineConfig({
|
export default ({ mode }) => defineConfig({
|
||||||
base: process.env.NODE_ENV === 'production' ? '/' : '/',
|
base: process.env.NODE_ENV === 'production' ? './' : '/',
|
||||||
// 路径重定向
|
// 路径重定向
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: [
|
alias: [
|
||||||
|
Loading…
Reference in New Issue
Block a user