新增数据,开始安全巡检模块
This commit is contained in:
@@ -61,6 +61,7 @@ export const useHouseStore = defineStore(
|
||||
const getviliageinfo = async (id) => {
|
||||
const res = await getVillageByIdAPI(id);
|
||||
currentVilageInfo.value = res.data;
|
||||
return res.data;
|
||||
};
|
||||
|
||||
// 更新小区信息
|
||||
@@ -215,10 +216,6 @@ export const useHouseStore = defineStore(
|
||||
|
||||
// 房屋 树状结构类型
|
||||
const getCurrentVilageTreeHouse = async () => {
|
||||
if (!currentVilageInfo.value?.villageId) {
|
||||
treedata.value = [];
|
||||
return treedata.value;
|
||||
}
|
||||
try {
|
||||
treedata.value = [];
|
||||
const res = await getVillageTree(currentVilageInfo.value.villageId);
|
||||
|
||||
Reference in New Issue
Block a user