فهرست منبع

编辑节点更新

duy 2 سال پیش
والد
کامیت
a8787df4c4
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/components/dialog/EditNodeDialog.vue

+ 2 - 2
src/components/dialog/EditNodeDialog.vue

@@ -114,7 +114,7 @@ import {useAppStore} from "~src/store";
 import {ref, watch, onMounted,nextTick,toRefs,computed } from "vue";
 import {roletree,getDictionary,archiveTreeSave,archiveTreeDetail,archiveTreeUpdate} from "~api/other";
 import archiveFileApi from "~api/archiveFile/archiveFile";
-import {getArrValue} from "js-fast-way"
+import {getArrValue,isArrItem} from "js-fast-way"
 const useAppState = useAppStore()
 
 const contractId = ref(useAppState.getContractId);
@@ -312,7 +312,7 @@ const confirmClick = async () => {
 }
 
 const saveTreeNode = async (form)=>{
-    if (form.majorDataType) {
+    if (isArrItem( form?.majorDataType)) {
         if (form.majorDataType.length > 0) {
           let das = ''
           form.majorDataType.forEach((val, key) => {