Ver Fonte

修改bug

ZaiZai há 1 ano atrás
pai
commit
651ff946c3

+ 1 - 1
src/views/tentative/material/modules/testSample/dispose.vue

@@ -50,7 +50,6 @@ onMounted(() => {
     getContractData()
 })
 
-
 //获取合同段信息
 const contractData = ref([])
 const getContractData = async () => {
@@ -62,6 +61,7 @@ const getContractData = async () => {
     contractData.value = res
     if (res.length > 0) {
         searchForm.value.contractId = res[0].id
+        searchClick()
     }
 }
 

+ 1 - 6
src/views/tentative/material/testSample.vue

@@ -18,7 +18,7 @@
 </template>
 
 <script setup>
-import { onActivated, ref } from 'vue'
+import { ref } from 'vue'
 import { useAppStore } from '~src/store'
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
 import { getObjValue } from 'js-fast-way'
@@ -39,11 +39,6 @@ const projectInfo = ref(store.getProjectInfo)
 //自动展开缓存
 const treeAutoExpandKeys = ref(getStoreValue('testTreeExpandKeys') || [])
 
-//渲染完成
-onActivated(() => {
-
-})
-
 //树被点击
 const treeInfo = ref({})
 const wbsElTreeClick = ({ data, keys }) => {