Merge pull request #2234 from beat4ocean/master
Some checks are pending
supersonic CentOS CI / build (21) (push) Waiting to run
supersonic mac CI / build (21) (push) Waiting to run
supersonic ubuntu CI / build (21) (push) Waiting to run
supersonic windows CI / build (21) (push) Waiting to run

[Fix][headless-fe] Error when copying access token
This commit is contained in:
superhero
2025-04-27 09:42:42 +08:00
committed by GitHub

View File

@@ -7,7 +7,7 @@ import {
getUserAccessTokens,
removeAccessToken,
} from '@/services/user';
import { encryptPassword, encryptKey } from '@/utils/utils';
import { encryptPassword, encryptKey, copyText } from '@/utils/utils';
import { API } from '@/services/API';
import { EditableProTable, ProColumns } from '@ant-design/pro-components';
import { CopyOutlined } from '@ant-design/icons';
@@ -84,8 +84,7 @@ const ChangePasswordModal = forwardRef<IRef>((_, ref) => {
type="link"
size="small"
onClick={() => {
navigator.clipboard.writeText(record.token || '');
message.info('已复制到剪贴板');
copyText(record.token || '');
}}
>
<CopyOutlined />