1.优化
This commit is contained in:
2025-07-09 17:33:51 +08:00
parent cd1b085499
commit cf129e6d23
18 changed files with 48 additions and 60 deletions
@@ -79,8 +79,14 @@
orgCode: String,
type: String,
themeType: String,
refreshState: {
type: Boolean,
default: () => false,
},
});
onMounted(() => {
init();
});
onMounted(() => {});
watch(props, () => {
init();
});
@@ -91,11 +97,12 @@
const { code, result } = await getWatchDataByOrgCode(props);
if (code == 200) {
setValue(result);
setSession(PAGE2_LEFT, JSON.stringify(result));
// setSession(PAGE2_LEFT, JSON.stringify(result));
}
console.log(dataList.value);
} catch {
const result = JSON.parse(getSession(PAGE2_LEFT));
setValue(result);
// const result = JSON.parse(getSession(PAGE2_LEFT));
// setValue(result);
}
}