|
@@ -94,7 +94,7 @@ import { reactive, getCurrentInstance, toRefs, inject, nextTick } from "vue";
|
|
import { useStores, commonStores } from "@/store/modules/index";
|
|
import { useStores, commonStores } from "@/store/modules/index";
|
|
/*----------------------------------公共方法引入-----------------------------------*/
|
|
/*----------------------------------公共方法引入-----------------------------------*/
|
|
import config from "@/config";
|
|
import config from "@/config";
|
|
-import { storage, storageSystem } from "@/utils/storage";
|
|
|
|
|
|
+import { storageSystem } from "@/utils/storage";
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
const useStore = useStores();
|
|
const useStore = useStores();
|
|
@@ -226,7 +226,7 @@ function submitRes() {
|
|
tenantId: useStore.tenantId,
|
|
tenantId: useStore.tenantId,
|
|
cids: proxy.$settingStore.pushClientId || undefined,
|
|
cids: proxy.$settingStore.pushClientId || undefined,
|
|
type: proxy.$common.isWechatMp() ? "wx" : "app",
|
|
type: proxy.$common.isWechatMp() ? "wx" : "app",
|
|
- openId: useStore.wxOpenId || undefined,
|
|
|
|
|
|
+ openId: proxy.$common.isWechatMp() ? localStorage.getItem("wxOpenId") : undefined,
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
if (!username.value) {
|
|
if (!username.value) {
|
|
@@ -244,7 +244,7 @@ function submitRes() {
|
|
tenantId: useStore.tenantId,
|
|
tenantId: useStore.tenantId,
|
|
cids: proxy.$settingStore.pushClientId || undefined,
|
|
cids: proxy.$settingStore.pushClientId || undefined,
|
|
type: proxy.$common.isWechatMp() ? "wx" : "app",
|
|
type: proxy.$common.isWechatMp() ? "wx" : "app",
|
|
- openId: useStore.wxOpenId || undefined,
|
|
|
|
|
|
+ openId: proxy.$common.isWechatMp() ? localStorage.getItem("wxOpenId") : undefined,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|