Procházet zdrojové kódy

移除路由钩子async

songxy před 1 rokem
rodič
revize
5c184bcb7b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {