fix: use clipboard copy helper library

This commit is contained in:
HouYunFei
2026-05-20 13:29:12 +08:00
parent c20faa665b
commit fd533dd261
8 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import { useEffect, useState } from "react";
import { useQuery } from "@tanstack/react-query";
import { App, Button, Card, Drawer, Empty, Image, Input, Pagination, Spin, Tag, Typography } from "antd";
import axios from "axios";
import copy from "copy-to-clipboard";
import { cn } from "@/lib/utils";
import { useAssetStore } from "@/stores/use-asset-store";
@@ -77,7 +78,7 @@ export default function AssetLibraryPage() {
};
const copyText = async (value: string) => {
await navigator.clipboard.writeText(value);
copy(value);
message.success("已复制");
};