update: 修改模拟用户判断

This commit is contained in:
xf
2025-08-06 15:56:51 +08:00
parent 6ed0a91f5d
commit c512766e95
@@ -188,7 +188,7 @@
function isAdmin() {
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() {