refactor: refactor admin console page layout

This commit is contained in:
RockYang
2023-08-02 15:00:18 +08:00
parent fdd659f393
commit 3529649ba9
15 changed files with 172 additions and 100 deletions

View File

@@ -1,4 +1,5 @@
import {defineStore} from 'pinia';
import Storage from "good-storage";
export const useSidebarStore = defineStore('sidebar', {
state: () => {
@@ -13,3 +14,13 @@ export const useSidebarStore = defineStore('sidebar', {
}
}
});
const MENU_STORE_KEY = "admin_menu_items"
export function getMenuItems() {
return Storage.get(MENU_STORE_KEY)
}
export function setMenuItems(items) {
return Storage.set(MENU_STORE_KEY, items)
}