mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 更新关于全局路径设置与文档链接
This commit is contained in:
@ -102,7 +102,7 @@ export default {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
this.$router.push({ path: "/login" })
|
||||
location.href = this.$router.options.base + '/index';
|
||||
})
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
@ -167,6 +167,7 @@ export const constantRoutes = [
|
||||
]
|
||||
|
||||
export default new Router({
|
||||
base: "", // 项目前缀 与 publicPath 同步 例如 /api
|
||||
mode: 'history', // 去掉url中的#
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
routes: constantRoutes
|
||||
|
@ -65,7 +65,7 @@ service.interceptors.response.use(res => {
|
||||
}
|
||||
).then(() => {
|
||||
store.dispatch('LogOut').then(() => {
|
||||
location.href = '/index';
|
||||
location.href = this.$router.options.base + '/index';
|
||||
})
|
||||
}).catch(() => {});
|
||||
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
||||
|
Reference in New Issue
Block a user