增加copy name菜单

This commit is contained in:
xu_yanfeng 2025-01-24 17:42:26 +08:00
parent 8c34fd7b91
commit a09669f13c

View File

@ -270,7 +270,7 @@ export default defineComponent({
menus.push({ menus.push({
name: "fresh auto", name: "fresh auto",
callback: () => { callback: () => {
timer.create(); timer.create(true);
}, },
}); });
menus.push({ menus.push({
@ -302,6 +302,21 @@ export default defineComponent({
}); });
}, },
}); });
menus.push({
name: "copy name",
enabled: false,
callback() {
navigator.clipboard
.writeText("123")
.then(() => {
ccui.footbar.showTips("copy success");
})
.catch((e) => {
console.log(e);
ccui.footbar.showError("copy failed");
});
},
});
if (selectedUUID) { if (selectedUUID) {
menus.push({ menus.push({
name: "visible", name: "visible",