修改路径

This commit is contained in:
wuyibo
2023-04-08 10:11:40 +08:00
parent 8adcaa26f8
commit 05db667a80
3 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
location.href = '/prod/index';
location.href = process.env.ENV_NG+'index';
})
}).catch(() => {});
}

View File

@@ -186,7 +186,7 @@ Router.prototype.push = function push(location) {
export default new Router({
mode: 'history', // 去掉url中的#
base: "/prod/",
base: process.env.ENV_NG,
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})