update: 修改模拟用户判断
This commit is contained in:
@@ -188,7 +188,7 @@
|
|||||||
|
|
||||||
function isAdmin() {
|
function isAdmin() {
|
||||||
const userInfo = userStore.getUserInfo || {};
|
const userInfo = userStore.getUserInfo || {};
|
||||||
return Object.keys(userStore.getFakeUserInfo).length > 0 || (userInfo?.roleCodes && userInfo?.roleCodes.includes('admin'));
|
return Object.keys(userStore.getFakeUserInfo).length > 0 || (userInfo?.roleCodes && userInfo?.roleCodes === 'admin');
|
||||||
}
|
}
|
||||||
|
|
||||||
function fakeUserInfo() {
|
function fakeUserInfo() {
|
||||||
|
|||||||
Reference in New Issue
Block a user