新增加路由器前缀通过环境变量配置

This commit is contained in:
izory
2021-10-14 17:34:05 +08:00
parent 24ced6b9b5
commit 4d58a154cc
7 changed files with 7 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ service.interceptors.response.use(res => {
}
).then(() => {
store.dispatch('LogOut').then(() => {
location.href = '/index';
location.href = process.env.VUE_APP_ROUTER_PREFIX + '/index';
})
})