|
@@ -37,7 +37,13 @@ router.beforeEach(async (to, from, next) => {
|
|
|
LibForWeixin.auth();
|
|
|
return;
|
|
|
}
|
|
|
- if (!appStore.globalConfig && to.name !== "WxLogin" && userStore.openId) {
|
|
|
+ if (
|
|
|
+ !appStore.globalConfig &&
|
|
|
+ to.name !== "WxLogin" &&
|
|
|
+ (userStore.openId ||
|
|
|
+ pattern.test(location.hostname) ||
|
|
|
+ location.hostname === "apply-test.qmth.com.cn")
|
|
|
+ ) {
|
|
|
let config = await appStore.getGlobalConfig();
|
|
|
if (((config && !config?.taskTitle) || !config) && to.name !== "Login") {
|
|
|
next({ name: "Login", replace: true });
|