adminforth 2.4.0-next.168 → 2.4.0-next.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -355,6 +355,8 @@ watch(()=>coreStore.menu, () => {
|
|
|
355
355
|
});
|
|
356
356
|
})
|
|
357
357
|
|
|
358
|
+
|
|
359
|
+
|
|
358
360
|
watch(isSidebarIconOnly, (isIconOnly) => {
|
|
359
361
|
if (!isMobile.value && iconOnlySidebarEnabled.value) {
|
|
360
362
|
localStorage.setItem('afIconOnlySidebar', isIconOnly.toString());
|
|
@@ -401,6 +403,12 @@ onMounted(() => {
|
|
|
401
403
|
if (!iconOnlySidebarEnabled.value) {
|
|
402
404
|
isSidebarIconOnly.value = false;
|
|
403
405
|
}
|
|
406
|
+
|
|
407
|
+
coreStore.menu.forEach((item, i) => {
|
|
408
|
+
if (item.open) {
|
|
409
|
+
opened.value.push(i);
|
|
410
|
+
};
|
|
411
|
+
});
|
|
404
412
|
// Emit initial state
|
|
405
413
|
emit('sidebarStateChange', { isSidebarIconOnly: isSidebarIconOnly.value, isSidebarHovering: isSidebarHovering.value });
|
|
406
414
|
})
|