|
@@ -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()
|
|
|
})
|