Przeglądaj źródła

名字保存问题

wangziqian 5 lat temu
rodzic
commit
f829df62fe

+ 5 - 3
src/views/projectManage/taskList/childrenTask/childDrawer.vue

@@ -273,9 +273,11 @@ export default {
         bizId: this.formData.bizId
       }
       if (e === 'name') {
-        this.formData.name.replace(/\s/g, '') === ''
-        this.getById()
-        return
+        this.formData.name = this.formData.name.replace(/\s/g, '')
+        if (this.formData.name === '') {
+          this.getById()
+          return
+        }
       }
       if (e === 'participants') {
         params[e] = this.formData[e].join(',')