避难所

This commit is contained in:
wzy-warehouse
2026-04-18 20:10:54 +08:00
parent 0921f07593
commit b7d300e1e9
14 changed files with 270 additions and 5 deletions
+13
View File
@@ -60,6 +60,14 @@ export const useLoadingInformationStore = defineStore(
id: -1,
});
// ============================== 避难所状态 ================================
const emergencyShelter = reactive({
/** 加载状态 */
loading: false,
/** 避难所ID */
id: -1,
});
/**
* 重置所有状态
*/
@@ -83,6 +91,10 @@ export const useLoadingInformationStore = defineStore(
// 危险源状态重置
dangerousSource.loading = false;
dangerousSource.id = -1;
// 避难所状态重置
emergencyShelter.loading = false;
emergencyShelter.id = -1;
};
return {
@@ -91,6 +103,7 @@ export const useLoadingInformationStore = defineStore(
riskPoint,
hospital,
dangerousSource,
emergencyShelter,
resetStatue,
};
}