Przeglądaj źródła

对象被污染,参数多传了导致后端解析异常 bug

xgb 2 dni temu
rodzic
commit
05b0d36bf5
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      src/views/qw/externalContact/deptIndex.vue

+ 7 - 2
src/views/qw/externalContact/deptIndex.vue

@@ -1774,9 +1774,14 @@ export default {
         spinner: 'el-icon-loading',
         background: 'rgba(0, 0, 0, 0.7)'
       });
+      const requestData = {
+        userIds: this.ids,
+        notes: this.notesOpen.notes,
+        type: this.notesOpen.type,
+        nameType: this.notesOpen.nameType
+      };
 
-
-      batchUpdateExternalContactNotes({userIds:this.ids,notes:this.notesOpen.notes,type:this.notesOpen.type,nameType:this.notesOpen.nameType}).then(res => {
+      batchUpdateExternalContactNotes(requestData).then(res => {
 
         this.resultMessage = res.msg;
         this.resultDialogVisible = true; // 显示弹窗