刘洋 8 сар өмнө
parent
commit
57f530986f
1 өөрчлөгдсөн 4 нэмэгдсэн , 5 устгасан
  1. 4 5
      src/router/index.js

+ 4 - 5
src/router/index.js

@@ -29,11 +29,10 @@ router.beforeEach(async (to, from, next) => {
   if (
     !userStore.openId &&
     !code &&
-    !import.meta.env.VITE_NOT_NEED_WX_AUTH
-    // &&!(
-    //   pattern.test(location.hostname) ||
-    //   location.hostname === "apply-test.qmth.com.cn"
-    // )
+    !(
+      pattern.test(location.hostname) ||
+      location.hostname === "apply-test.qmth.com.cn"
+    )
   ) {
     LibForWeixin.auth();
     return;