duy 3 долоо хоног өмнө
parent
commit
f9e320c597

+ 2 - 2
src/test/index.vue

@@ -119,7 +119,7 @@ import { onMounted, ref } from 'vue'
 import scanApi from '~api/archiveFile/scanning'
 import scanApi from '~api/archiveFile/scanning'
 import { useAppStore } from '~src/store'
 import { useAppStore } from '~src/store'
 import HcTree from '~src/components/tree/hc-tree.vue'
 import HcTree from '~src/components/tree/hc-tree.vue'
-import { getArrValue } from 'js-fast-way'
+import { deepClone, getArrValue } from 'js-fast-way'
 import MenuItem from './MenuItem.vue' // 导入递归组件
 import MenuItem from './MenuItem.vue' // 导入递归组件
 import { toPdfPage } from '~uti/btn-auth'
 import { toPdfPage } from '~uti/btn-auth'
 const useAppState = useAppStore()
 const useAppState = useAppStore()
@@ -301,7 +301,7 @@ const scanClick = async () => {
 const editModal = ref(false)
 const editModal = ref(false)
 const editClick = () => {
 const editClick = () => {
     editModal.value = true
     editModal.value = true
-    tableEditData.value = JSON.parse(JSON.stringify(tableCheckedKeys.value))
+    tableEditData.value = deepClone(tableCheckedKeys.value)
 }
 }
 const editLoading = ref(false)
 const editLoading = ref(false)
 const editModalSave = async () => {
 const editModalSave = async () => {