mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
Merge pull request #2234 from beat4ocean/master
[Fix][headless-fe] Error when copying access token
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
|||||||
getUserAccessTokens,
|
getUserAccessTokens,
|
||||||
removeAccessToken,
|
removeAccessToken,
|
||||||
} from '@/services/user';
|
} from '@/services/user';
|
||||||
import { encryptPassword, encryptKey } from '@/utils/utils';
|
import { encryptPassword, encryptKey, copyText } from '@/utils/utils';
|
||||||
import { API } from '@/services/API';
|
import { API } from '@/services/API';
|
||||||
import { EditableProTable, ProColumns } from '@ant-design/pro-components';
|
import { EditableProTable, ProColumns } from '@ant-design/pro-components';
|
||||||
import { CopyOutlined } from '@ant-design/icons';
|
import { CopyOutlined } from '@ant-design/icons';
|
||||||
@@ -84,8 +84,7 @@ const ChangePasswordModal = forwardRef<IRef>((_, ref) => {
|
|||||||
type="link"
|
type="link"
|
||||||
size="small"
|
size="small"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigator.clipboard.writeText(record.token || '');
|
copyText(record.token || '');
|
||||||
message.info('已复制到剪贴板');
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CopyOutlined />
|
<CopyOutlined />
|
||||||
|
|||||||
Reference in New Issue
Block a user