隐患点
This commit is contained in:
+14
-1
@@ -2,8 +2,21 @@
|
||||
<RouterView></RouterView>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="App">
|
||||
<script setup lang="ts">
|
||||
import { RouterView } from 'vue-router'
|
||||
import { ElLoading } from 'element-plus'
|
||||
import { watch } from 'vue';
|
||||
import { useViewerStore } from './stores/useViewerStore';
|
||||
const loadingInstanve = ElLoading.service({
|
||||
fullscreen: true,
|
||||
text: '正在加载配置相关资源中...'
|
||||
})
|
||||
|
||||
watch(() => useViewerStore().getViewerLoadingCompleted(), (val) => {
|
||||
if (val == true) {
|
||||
loadingInstanve.close()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user