添加遮罩效果

This commit is contained in:
wzy-warehouse
2026-04-12 22:07:00 +08:00
parent 5cfda702a1
commit 83f8fec3a4
8 changed files with 234 additions and 22 deletions
+9 -3
View File
@@ -7,14 +7,20 @@ import { RouterView } from 'vue-router'
import { ElLoading } from 'element-plus'
import { watch } from 'vue';
import { useViewerStore } from './stores/useViewerStore';
const loadingInstanve = ElLoading.service({
const loadingOption = {
fullscreen: true,
text: '正在加载配置相关资源中...'
})
}
let loadingInstanve = ElLoading.service(loadingOption)
watch(() => useViewerStore().getViewerLoadingCompleted(), (val) => {
if (val == true) {
if (val) {
loadingInstanve.close()
} else {
loadingInstanve = ElLoading.service(loadingOption)
}
})
</script>