mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 20:23:46 +08:00
refactor: refactor admin console page layout
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user