feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { writeClipboardText } from '../../helpers/clipboard';
|
||||
import React, { useState, useContext, useRef } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Link, useNavigate, useSearchParams } from 'react-router-dom';
|
||||
@@ -113,7 +114,7 @@ const Tutorial = () => {
|
||||
// 复制代码
|
||||
const copyCode = async (code, index) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(code);
|
||||
await writeClipboardText(code);
|
||||
setCopiedIndex(index);
|
||||
Toast.success(t('已复制到剪贴板'));
|
||||
setTimeout(() => setCopiedIndex(null), 2000);
|
||||
|
||||
Reference in New Issue
Block a user