Преглед изворни кода

Merge remote-tracking branch 'origin/master'

jzh пре 1 година
родитељ
комит
853d6d3d58
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client_h5/src/router/index.ts

+ 1 - 1
client_h5/src/router/index.ts

@@ -14,7 +14,7 @@ const router = createRouter({
 })
 
 // 路由加载前
-router.beforeEach(async (to, from, next) => {
+router.beforeEach((to, from, next) => {
   getUserInfoPromise(true).then((isLogin) => {
     next(); 
     if (!isLogin) {