mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-09-20 10:44:22 +08:00
fix: 修复侧边栏开合时图表没有刷新 (#253)
This commit is contained in:
parent
11f0a1259d
commit
75d3e00d7e
|
@ -130,6 +130,7 @@ onUnmounted(() => {
|
||||||
onDeactivated(() => {
|
onDeactivated(() => {
|
||||||
storeModeWatch();
|
storeModeWatch();
|
||||||
storeBrandThemeWatch();
|
storeBrandThemeWatch();
|
||||||
|
storeSidebarCompactWatch();
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentMonth = ref(getThisMonth());
|
const currentMonth = ref(getThisMonth());
|
||||||
|
@ -141,6 +142,21 @@ const storeBrandThemeWatch = watch(
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const storeSidebarCompactWatch = watch(
|
||||||
|
() => store.isSidebarCompact,
|
||||||
|
() => {
|
||||||
|
if (store.isSidebarCompact) {
|
||||||
|
nextTick(() => {
|
||||||
|
updateContainer();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
setTimeout(() => {
|
||||||
|
updateContainer();
|
||||||
|
}, 180);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
const storeModeWatch = watch(
|
const storeModeWatch = watch(
|
||||||
() => store.mode,
|
() => store.mode,
|
||||||
() => {
|
() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user