框架更新

This commit is contained in:
2024-08-02 23:22:38 +08:00
parent 0cda1968e8
commit ff46808425
214 changed files with 6171 additions and 15881 deletions
+3 -3
View File
@@ -2,8 +2,8 @@
* 登录用户 store
*/
import { defineStore } from 'pinia';
import type { User } from '@/uni_modules/ws-common/api/system/user/model';
import { getUserInfo } from '@/uni_modules/ws-common/api/layout';
import type { User } from '@/api/system/user/model';
import { getUserInfo } from '@/api/layout';
export interface UserState {
info: User | null;
@@ -45,7 +45,7 @@ export const useUserStore = defineStore({
this.roles = result.roles?.map((d) => d.roleCode) ?? [];
// 用户菜单, 过滤掉按钮类型并转为 children 形式
this.menus = [];
return result;
},
/**