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({
|
||||
name: "fresh auto",
|
||||
callback: () => {
|
||||
timer.create();
|
||||
timer.create(true);
|
||||
},
|
||||
});
|
||||
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) {
|
||||
menus.push({
|
||||
name: "visible",
|
||||
|
Loading…
x
Reference in New Issue
Block a user