@gonsin/gview 2.1.3 → 2.1.5

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.
@@ -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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonsin/gview",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "main": "dist/index.mjs",
5
5
  "typings": "dist/types/index.d.ts",
6
6
  "files": [