From ee8719f97295d11cb06481d2bafb724966cc17c5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 9 Jun 2022 10:24:21 +0800 Subject: [PATCH] BUG 30123 --- src/project/beta/AppSpecialPeople/add.vue | 4 ++-- src/store/index.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/project/beta/AppSpecialPeople/add.vue b/src/project/beta/AppSpecialPeople/add.vue index 2a146fef..f24fd670 100644 --- a/src/project/beta/AppSpecialPeople/add.vue +++ b/src/project/beta/AppSpecialPeople/add.vue @@ -151,7 +151,7 @@
{{ item.mustFill == 1 ? '*' : '' }}{{ item.fieldName }}
- +
@@ -462,7 +462,7 @@ export default { return obj?.toString() || "-" }, handleSelectGird(gird, item) { - let info = gird?.[0] || {} + let info = gird || {} this.formData[item.fieldDbName] = [info.id, info.girdName].join("_") this.formData[item.fieldDbName + "_name"] = info.girdName this.$forceUpdate() diff --git a/src/store/index.js b/src/store/index.js index 143af8f2..2b1ab1c8 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -10,7 +10,6 @@ let agentSignURL = "", apiList = [] const store = new Vuex.Store({ state: { token: "", - corpId: "", openUser: {}, user: {}, config: {}, @@ -65,7 +64,7 @@ const store = new Vuex.Store({ }, redirectCode(state, url = location.href) { let REDIRECT_URI = encodeURIComponent(url), - corpid = state.corpId + corpid = state.config.corpid const redirectTo = cid => { location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base#wechat_redirect' .replace(/CORPID/g, cid) @@ -75,7 +74,7 @@ const store = new Vuex.Store({ redirectTo(corpid) } else { store.dispatch("agentSign").then(() => { - corpid = state.corpId + corpid = state.config.corpid redirectTo(corpid) }) }