框架更新
This commit is contained in:
@@ -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;
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user