update RolePermissionAssign style
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user