update
This commit is contained in:
@@ -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('复制失败');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user