feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -16,6 +16,8 @@ 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, {
|
||||
useCallback,
|
||||
useEffect,
|
||||
@@ -1414,7 +1416,7 @@ const CloudBrain = ({ organization = false, orgId = 0, canManage = false }) => {
|
||||
if (!content) return;
|
||||
const identity = contextIdentity;
|
||||
try {
|
||||
await navigator.clipboard.writeText(content);
|
||||
await writeClipboardText(content);
|
||||
if (identity === contextIdentityRef.current)
|
||||
showSuccess(t('已复制产物内容'));
|
||||
} catch {
|
||||
@@ -1446,7 +1448,7 @@ const CloudBrain = ({ organization = false, orgId = 0, canManage = false }) => {
|
||||
raw ? `${t('原始报错')}: ${raw}` : '',
|
||||
].filter(Boolean);
|
||||
try {
|
||||
await navigator.clipboard.writeText(lines.join('\n'));
|
||||
await writeClipboardText(lines.join('\n'));
|
||||
if (identity === contextIdentityRef.current)
|
||||
showSuccess(t('已复制报错信息'));
|
||||
} catch {
|
||||
@@ -1553,7 +1555,6 @@ const CloudBrain = ({ organization = false, orgId = 0, canManage = false }) => {
|
||||
for (
|
||||
const visited = new Set();
|
||||
departmentId && !visited.has(departmentId);
|
||||
|
||||
) {
|
||||
visited.add(departmentId);
|
||||
departmentIds.add(departmentId);
|
||||
|
||||
Reference in New Issue
Block a user