diff --git a/apps/mobile/src/screens/WorkspaceScreen.tsx b/apps/mobile/src/screens/WorkspaceScreen.tsx
index 623724ca..5e486491 100644
--- a/apps/mobile/src/screens/WorkspaceScreen.tsx
+++ b/apps/mobile/src/screens/WorkspaceScreen.tsx
@@ -2614,6 +2614,7 @@ const ApiTokenRow = ({
}) => {
const tokenCopyLabel = `token-${token.id}`;
const configCopyLabel = `config-${token.id}`;
+ const canCopyToken = Boolean(token.token && !token.isRevoked);
return (
@@ -2627,11 +2628,11 @@ const ApiTokenRow = ({
{token.lastUsedAt ? `最近使用 ${formatDate(token.lastUsedAt)}` : "从未使用"}
- token.token && onCopy(token.token, tokenCopyLabel)}>
- {copiedValue === tokenCopyLabel ? : }
+ token.token && onCopy(token.token, tokenCopyLabel)}>
+ {copiedValue === tokenCopyLabel ? : }
- token.token && onCopy(buildMcpRemoteConfig(baseUrl, token.token), configCopyLabel)}>
- {copiedValue === configCopyLabel ? : }
+ token.token && onCopy(buildMcpRemoteConfig(baseUrl, token.token), configCopyLabel)}>
+ {copiedValue === configCopyLabel ? : }
!isDeleting && onDelete(token)}>