Преглед на файлове

移除路由钩子async

songxy преди 1 година
родител
ревизия
5c184bcb7b
променени са 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) {