From 51b4c9bc1bdcd9f98a37b9d1b9d8b275fd012094 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 26 Oct 2026 18:15:39 +0800 Subject: [PATCH] fix: update role string representation to include workspace identifier --- ui/src/permission/core/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/permission/core/common.ts b/ui/src/permission/core/common.ts index 42c9c99874e..1d0fe7764df 100644 --- a/ui/src/permission/core/common.ts +++ b/ui/src/permission/core/common.ts @@ -202,7 +202,7 @@ export class Role { /** 对应后端 `Role.__str__`。 */ toString(): string { - return this.workspaceId ? `${this.name}:${this.workspaceId}` : `${this.name}` + return this.workspaceId ? `${this.name}:w:${this.workspaceId}` : `${this.name}` } /** 工作空间维度角色工厂,对应后端 `RoleConstants.get_workspace_role`。 */