@gonsin/gview 2.1.2 → 2.1.4
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.
- package/dist/index.mjs +1779 -1773
- package/dist/style.css +1 -1
- package/dist/types/stores/setting.d.ts +3 -2
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ interface UserConfig {
|
|
|
5
5
|
userMenu: any;
|
|
6
6
|
homeUrl?: string;
|
|
7
7
|
logoUrl?: string;
|
|
8
|
+
isAdminUser: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare type ThemeConfigType = typeof DEFAULT_THEME_CONFIG;
|
|
10
11
|
interface SettingState {
|
|
@@ -92,9 +93,9 @@ export declare const useSettingStore: import("pinia").StoreDefinition<"setting",
|
|
|
92
93
|
* @param {string} token
|
|
93
94
|
*/
|
|
94
95
|
initUserToken(token: string): Promise<void>;
|
|
95
|
-
setSideMenuTree(userMenu: any[], filterByBasePermission?: boolean): void;
|
|
96
96
|
setBasePermission(permissions: string[]): void;
|
|
97
|
-
setUserPermission(permissions: SideMenu[]): void;
|
|
97
|
+
setUserPermission(permissions: string[], menuData: SideMenu[]): void;
|
|
98
|
+
setSideMenuTree(userMenu: any[]): void;
|
|
98
99
|
/**
|
|
99
100
|
* @description 用户登录后初始化配置
|
|
100
101
|
*/
|