diff --git a/src/views/index/addWechat.vue b/src/views/index/addWechat.vue index 9ff076c4..98870105 100644 --- a/src/views/index/addWechat.vue +++ b/src/views/index/addWechat.vue @@ -41,6 +41,7 @@ const cached = localStorage.getItem('supplierAddForm'); if (cached) { this.formPayload = JSON.parse(cached); + this.wechatId = this.formPayload.wechatId; this.name = this.formPayload.name; } if (this.name) { @@ -70,8 +71,10 @@ }, async nextStep() { if (!this.clickFlag) return; - let res = await getContactQrCodeResult({ configId: this.configId }); - this.wechatId = res?.data?.wechatId; + if(!this.wechatId) { + let res = await getContactQrCodeResult({ configId: this.configId }); + this.wechatId = res?.data?.wechatId; + } if (!this.wechatId) { Toast('请先添加企微再继续'); return; diff --git a/src/views/index/supplierAdd.vue b/src/views/index/supplierAdd.vue index f507ba8f..cf38de4e 100644 --- a/src/views/index/supplierAdd.vue +++ b/src/views/index/supplierAdd.vue @@ -312,6 +312,7 @@ accountUrl: this.licensePhoto, service: this.$refs.tree.getCheckedKeys().join(','), serviceAreaCode: checkArr.join(','), + wechatId: this.wechatId, }; localStorage.setItem('supplierAddForm', JSON.stringify(payload)); this.goPage('addWechat', { potentialFlag: 1 });