优化命令片段处理逻辑.

This commit is contained in:
lijiahangmax
2024-08-02 01:52:29 +08:00
parent 18c605354a
commit 8ed42131d0
30 changed files with 327 additions and 415 deletions

View File

@@ -7,7 +7,9 @@ export const copy = async (value: string | undefined, tips: string | boolean = `
return;
}
await copyToClipboard(value);
if (tips) {
if (tips === true) {
Message.success('已复制');
} else if (tips) {
Message.success(tips as string);
}
} catch (e) {