update RolePermissionAssign style

This commit is contained in:
Timi
2026-08-11 17:34:43 +08:00
parent 1bf53c9d1c
commit c045fbb49b
7 changed files with 76 additions and 145 deletions
+1 -10
View File
@@ -112,6 +112,7 @@ import {
type RoleDraft,
usePermissionSettingsStore
} from "@/store/permissionSettingsStore";
import { getErrorMessage } from "@/utils/error";
import { corePermissionCodes, coreRoleCodes } from "@/utils/permission";
import PermissionCell from "@/pages/permission/component/PermissionCell.vue";
import PermissionLegend from "@/pages/permission/component/PermissionLegend.vue";
@@ -453,16 +454,6 @@ async function getCurrentStoreId(): Promise<string> {
return storeId;
}
function getErrorMessage(error: unknown, fallback: string): string {
if (error instanceof Error && error.message) {
return error.message;
}
if (typeof error === "string" && error) {
return error;
}
return fallback;
}
onMounted(fillForm);
function updateNavBar(): void {