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
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.168",
3
+ "version": "2.4.0-next.169",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",