Browse Source

修改文件

ZaiZai 11 months ago
parent
commit
38b7b945c3
1 changed files with 3 additions and 6 deletions
  1. 3 6
      src/views/project/modules/list/wbs-tree.vue

+ 3 - 6
src/views/project/modules/list/wbs-tree.vue

@@ -155,10 +155,7 @@ const store = useAppStore()
 //监听数据
 const isType = ref(props.type)
 const projectInfo = ref(props.info)
-watch(() => [
-    props.type,
-    props.info,
-], ([type, info]) => {
+watch(() => [props.type, props.info], ([type, info]) => {
     isType.value = type
     projectInfo.value = info
 }, { deep: true })
@@ -168,8 +165,8 @@ watch(isShow, (val) => {
     if (val) {
         getProjectData()
     } else {
-        projectInfo.value = {}
-        isType.value = ''
+        //projectInfo.value = {}
+        //isType.value = ''
         emit('close')
     }
 })