feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 6ad95e2baa
commit 5713d541b0
242 changed files with 9242 additions and 5043 deletions
@@ -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 { copyText } from '../../../../helpers/clipboard';
import React, { useState, useMemo, useEffect, useRef } from 'react';
import {
Empty,
@@ -443,30 +444,7 @@ const ImageTaskList = ({
}
};
const copyToClipboard = async (text) => {
if (navigator.clipboard && window.isSecureContext) {
try {
await navigator.clipboard.writeText(text);
return true;
} catch (err) {
console.warn('Clipboard API failed:', err);
}
}
try {
const textArea = document.createElement('textarea');
textArea.value = text;
textArea.style.position = 'fixed';
textArea.style.left = '-9999px';
document.body.appendChild(textArea);
textArea.select();
const ok = document.execCommand('copy');
document.body.removeChild(textArea);
return ok;
} catch (err) {
console.error('execCommand copy failed:', err);
return false;
}
};
const copyToClipboard = copyText;
const handleCopyPrompt = async (prompt) => {
if (!prompt) return;