duy 1 год назад
Родитель
Сommit
e641e2e7a6
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      src/views/other-file/image-form.vue

+ 6 - 2
src/views/other-file/image-form.vue

@@ -10,7 +10,7 @@
                     <div class="text-xs text-cut project-name">{{ projectInfo.name }}</div>
                 </div>
             </div>
-            <div class="hc-tree-box">
+            <div v-if="isshowTree" class="hc-tree-box">
                 <el-scrollbar>
                     <WbsTree
                         :auto-expand-keys="TreeAutoExpandKeys" :contract-id="contractId" :project-id="projectId" :class-id="classifyId"
@@ -202,9 +202,13 @@ watch(contractId, (val) => {
 })
 //自动展开缓存
 const TreeAutoExpandKeys = ref([])
-
+const isshowTree = ref(true)
 //渲染完成
 onActivated(() => {
+    isshowTree.value = false
+    setTimeout(() => {
+        isshowTree.value = true
+    }, 100)
     dataId.value = useRoutes?.query?.id || ''
     console.log( dataId.value, 'dataId.value')
     if (dataType === 1) {