Parcourir la source

微信配置bug修复

maotao il y a 7 mois
Parent
commit
cf2e0ed287
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/app/views/wechat-config/wechat-config.component.ts

+ 3 - 0
src/app/views/wechat-config/wechat-config.component.ts

@@ -69,6 +69,7 @@ export class WechatConfigComponent implements OnInit {
69
       return;
69
       return;
70
     }
70
     }
71
     const postData = {
71
     const postData = {
72
+			...this.configData,
72
 			agentId: this.validateForm.controls.agentid.value,
73
 			agentId: this.validateForm.controls.agentid.value,
73
 			appId: this.validateForm.controls.appid.value,
74
 			appId: this.validateForm.controls.appid.value,
74
       id: this.id,
75
       id: this.id,
@@ -99,12 +100,14 @@ export class WechatConfigComponent implements OnInit {
99
     );
100
     );
100
   }
101
   }
101
   // 获取微信配置
102
   // 获取微信配置
103
+	configData:any;
102
   getWechatConfig() {
104
   getWechatConfig() {
103
     const postData = { idx: 0, sum: 1 };
105
     const postData = { idx: 0, sum: 1 };
104
     this.mainService
106
     this.mainService
105
       .getFetchDataList("simple/data", "wechatConfig", postData)
107
       .getFetchDataList("simple/data", "wechatConfig", postData)
106
       .subscribe((result) => {
108
       .subscribe((result) => {
107
         if (result.status == 200) {
109
         if (result.status == 200) {
110
+					this.configData = result.list[0];
108
           const config = result.list[0];
111
           const config = result.list[0];
109
           if (!config) {
112
           if (!config) {
110
             this.loading1 = false;
113
             this.loading1 = false;