1
This commit is contained in:
@@ -58,7 +58,8 @@ export default {
|
||||
// 跳转到首页
|
||||
// 使用 replace 避免返回时回到登录页
|
||||
setTimeout(() => {
|
||||
this.$router.replace({ path: '/home' }).catch(() => {
|
||||
// 跳转到根路径,会自动 redirect 到第一个菜单
|
||||
this.$router.replace({ path: '/' }).catch(() => {
|
||||
// 如果路由跳转失败,刷新页面
|
||||
window.location.href = window.location.origin + window.location.pathname + '#/'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user