mirror of
				https://github.com/tidys/cc-inspector-chrome
				synced 2025-11-04 00:25:25 +00:00 
			
		
		
		
	增加copy name菜单
This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user