页面刷新

This commit is contained in:
仲么了
2024-02-28 11:16:40 +08:00
parent 268b8547f2
commit 6443edfb43
11 changed files with 28 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'
import staticRoutes from '@/router/static'
import { useAdminInfo } from '@/stores/adminInfo'
import NProgress from 'nprogress'
@@ -21,7 +21,7 @@ router.beforeEach((to, from, next) => {
// 登录或者注册才可以往下进行
next()
} else if (to.path == '/admin/center/homePage') {
window.open(window.location.origin + '/homePage')
window.open(window.location.origin + '/homePage/#/')
} else {
// 获取 token
const adminInfo = useAdminInfo()