@@ -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;