update
1.优化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user