打包排除public文件
This commit is contained in:
parent
aedcf388e8
commit
35b1466a2c
|
@ -68,7 +68,8 @@ axios.interceptors.response.use(
|
|||
if (error.response.status == UtilVar.code) {
|
||||
// router.push("/login")
|
||||
// 目前放测试地址 发布后放到正是地址---待修改
|
||||
window.location.href = 'http://nclg.yx.zheke.com/#/login';
|
||||
// window.location.href = 'http://nclg.yx.zheke.com/#/login';
|
||||
window.location.href = window.location.origin + '/#/login';
|
||||
|
||||
return Promise.resolve(response);
|
||||
}
|
||||
|
|
|
@ -70,6 +70,9 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
|
|||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
rollupOptions: {
|
||||
external: ['/public'], // 替换为你要排除的模块名称
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue