CzRger 6 mesi fa
parent
commit
505ec30ec7
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/views/manage/index/text-detail.vue

+ 2 - 0
src/views/manage/index/text-detail.vue

@@ -181,6 +181,8 @@ const onSubmit = () => {
       state.loading = true
       if (state.form.fieldType === 'text') {
         state.form.fieldAnalyzer = JSON.stringify(state.textTable.data)
+      } else {
+        state.form.fieldAnalyzer = null
       }
       sysIndexFieldSaveOrUpdate(state.form).then(res => {
         ElMessage.success(props.transfer.mode === 'add' ? '新增成功!' : '编辑成功!')