feat: 保存主机分组数据.

This commit is contained in:
lijiahang
2023-11-14 15:05:47 +08:00
parent b07d1d1d19
commit 4202890d07
13 changed files with 148 additions and 85 deletions

View File

@@ -3,13 +3,13 @@ import { Message } from '@arco-design/web-vue';
export default function useCopy() {
const { isSupported, copy: c, text, copied } = useClipboard();
const copy = async (value: string, tips = `${ value } 已复制`) => {
const copy = async (value: string, tips = `${value} 已复制`) => {
try {
await c(value);
if (tips) {
Message.success(tips);
}
} catch {
} catch (e) {
Message.error('复制失败');
}
};