This commit is contained in:
2025-06-26 20:01:02 +08:00
parent e32fe488e1
commit 44214f276e
5 changed files with 47 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import router from "../router/index.js";
import {useSystemStore} from "../pinia/SystemStore/index.js";
import {Message} from "@arco-design/web-vue";
export const toPath = (path, query = {}, flag = false) => {
router.push({
@@ -66,3 +67,11 @@ export const findSwappedIds = (original, swapped) => {
return [id1, id2];
};
export const copy = (text) => {
navigator.clipboard.writeText(text).then(() => {
Message.success('字符串已复制到剪贴板');
}).catch(err => {
Message.warning('复制失败');
});
}