修改组件中store的调用方式
This commit is contained in:
+3
-1
@@ -13,10 +13,12 @@
|
|||||||
text: '正在加载配置相关资源中...',
|
text: '正在加载配置相关资源中...',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const statusStore = useStatusStore();
|
||||||
|
|
||||||
let loadingInstanve = ElLoading.service(loadingOption);
|
let loadingInstanve = ElLoading.service(loadingOption);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => useStatusStore().appLoadingCompleted,
|
() => statusStore.appLoadingCompleted,
|
||||||
(val) => {
|
(val) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
loadingInstanve.close();
|
loadingInstanve.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user