mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 00:48:43 +00:00
增加copy name菜单
This commit is contained in:
parent
8c34fd7b91
commit
a09669f13c
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user