8
0
ZaiZai há 9 meses atrás
pai
commit
c036caab50
1 ficheiros alterados com 3 adições e 11 exclusões
  1. 3 11
      src/views/project/detail/wbs.vue

+ 3 - 11
src/views/project/detail/wbs.vue

@@ -43,7 +43,6 @@
 
 <script setup>
 import { onMounted, ref, watch } from 'vue'
-import { useAppStore } from '~src/store'
 import { deepClone, getArrValue, getObjValue, isNullES } from 'js-fast-way'
 import projectApi from '~api/project/project'
 import contractApi from '~api/project/contract'
@@ -58,9 +57,6 @@ const props = defineProps({
 //事件
 const emit = defineEmits(['close', 'next'])
 
-//缓存
-const store = useAppStore()
-
 //监听数据
 const dataInfo = ref(props.data)
 watch(() => props.data, (data) => {
@@ -68,12 +64,6 @@ watch(() => props.data, (data) => {
     getDataApi()
 }, { deep: true })
 
-//监听
-const userInfo = ref(store.getUserInfo)
-watch(() => store.getUserInfo, (info) => {
-    userInfo.value = info
-}, { immediate: true, deep: true })
-
 //渲染完成
 onMounted(() => {
     getDataApi()
@@ -90,7 +80,9 @@ const treeProps = {
 //获取数据
 const getDataApi = async () => {
     await getProjectDeatil()
-    if (isNullES(wbsId.value)) return
+    if (isNullES(wbsId.value)) {
+        return
+    }
     await getLeftTreeApi()
     await getRightTreeApi()
 }