Commit aebad61b authored by vben's avatar vben

fix: ensure that roleList is not empty

parent b1cb8635
......@@ -91,7 +91,7 @@ export const usePermissionStore = defineStore({
const appStore = useAppStoreWidthOut();
let routes: AppRouteRecordRaw[] = [];
const roleList = toRaw(userStore.getRoleList);
const roleList = toRaw(userStore.getRoleList) || [];
const { permissionMode = projectSetting.permissionMode } = appStore.getProjectConfig;
// role permissions
if (permissionMode === PermissionModeEnum.ROLE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment