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
@@ -39,6 +39,7 @@ import { useUserStore } from "timi-web";
import type { Role } from "@/store/permissionSettingsStore";
import { useNavBarStore } from "@/store/navBarStore";
import { usePermissionSettingsStore } from "@/store/permissionSettingsStore";
import { getErrorMessage } from "@/utils/error";
import { corePermissionCodes, coreRoleCodes } from "@/utils/permission";
defineOptions({
@@ -161,15 +162,6 @@ async function refreshAuthorizationScope(): Promise<void> {
}
}
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;
}
</script>
<style scoped lang="less">
@@ -198,4 +190,3 @@ function getErrorMessage(error: unknown, fallback: string): string {
}
</style>