ZaiZai 1 year ago
parent
commit
ad0af0d033

+ 2 - 2
src/views/tentative/acquisition/data.vue

@@ -108,10 +108,10 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from 'vue'
+import { onActivated, onDeactivated, ref } from 'vue'
 
 //渲染完成
-onMounted(() => {
+onActivated(() => {
 
 })
 

+ 2 - 2
src/views/tentative/detect/commission.vue

@@ -141,7 +141,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from 'vue'
+import { onActivated, onDeactivated, ref } from 'vue'
 import { useAppStore } from '~src/store'
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
 import TestTree from '~src/views/tentative/material/components/TestTree.vue'
@@ -155,7 +155,7 @@ const contractId = ref(useAppState.getContractId)
 const projectInfo = ref(useAppState.getProjectInfo)
 
 //渲染完成
-onMounted(() => {
+onActivated(() => {
 
 })
 

+ 2 - 2
src/views/tentative/material/sampling.vue

@@ -245,7 +245,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref, watch } from 'vue'
+import { onActivated, ref, watch } from 'vue'
 import { useAppStore } from '~src/store'
 import TestTree from './components/TestTree.vue'
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
@@ -273,7 +273,7 @@ watch(() => useAppState.getCollapse, (collapse) => {
 const treeAutoExpandKeys = ref(getStoreValue('testTreeExpandKeys') || [])
 
 //渲染完成
-onMounted(() => {
+onActivated(() => {
     getUserListData()
     getMaterialType()
 })

+ 2 - 2
src/views/tentative/material/testSample.vue

@@ -18,7 +18,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from 'vue'
+import { onActivated, onDeactivated, ref } from 'vue'
 import { useAppStore } from '~src/store'
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
 import { getObjValue } from 'js-fast-way'
@@ -41,7 +41,7 @@ const projectInfo = ref(store.getProjectInfo)
 const treeAutoExpandKeys = ref(getStoreValue('testTreeExpandKeys') || [])
 
 //渲染完成
-onMounted(() => {
+onActivated(() => {
 
 })