This commit is contained in:
xiaozhiyong
2023-02-23 16:08:14 +08:00
parent 2594c97ec2
commit 70d54bcfa5
14 changed files with 515 additions and 447 deletions

View File

@@ -15,7 +15,7 @@ const whiteList = ["/login"]; // no redirect whitelist
router.beforeEach(async (to, from, next) => {
NProgress.start();
document.title = getPageTitle(to.meta.title);
const hasToken = localStorage.getItem("token");
const hasToken = localStorage.getItem("businessToken");
if (hasToken) {
if (to.path === "/login") {
next({ path: "/" });