mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
修改路径
This commit is contained in:
@@ -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(() => {});
|
||||
}
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user