更新状态

This commit is contained in:
tcubic
2022-08-02 10:38:29 +08:00
parent 2431ca5a89
commit 3d2c065a0f
5 changed files with 38 additions and 25 deletions

View File

@@ -35,8 +35,7 @@ const authCode = ref('')
// 页面未挂载
onBeforeMount(() => {
console.log("用户活动信息1", store.state.userAccount);
console.log("授权链接:",window.location.href);
console.log("link",window.location.href);
// 微信环境授权
// if (h5plugin.isWX()) {
@@ -49,9 +48,18 @@ onBeforeMount(() => {
// } else {
// getCode()
// }
// }
// let token = h5plugin.getQueryString('token')
// 更新openid
store.commit({ type: "updateToken", token: h5plugin.getQueryString('token') });
store.commit({ type: "updateCardId", cardId: h5plugin.getQueryString('cardId') });
store.commit({ type: "updateNkh", cardId: h5plugin.getQueryString('nkh') });
console.log("用户活动信息:", store.state.userAccount);
});