mirror of
				https://github.com/tidys/cc-inspector-chrome
				synced 2025-11-04 02:35:24 +00:00 
			
		
		
		
	调整
This commit is contained in:
		@@ -18,8 +18,9 @@ class PortMan {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  private onPortConnect(port: chrome.runtime.Port, onMsg: Function, onDisconnect: Function) {
 | 
			
		||||
    console.log(`%c[Connect] ${port.name}`, "color:green");
 | 
			
		||||
    port.onMessage.addListener((data: any, sender: any) => {
 | 
			
		||||
      console.log(`%c[Connect-Message] ${sender.name}\n${JSON.stringify(data)}`, "color:green;")
 | 
			
		||||
      console.log(`%c[Connect-Message] ${sender.name}\n${JSON.stringify(data)}`, "color:blue;")
 | 
			
		||||
      // 如果多个页面都监听 onMessage 事件,对于某一次事件只有第一次调用 sendResponse() 能成功发出回应,所有其他回应将被忽略。
 | 
			
		||||
      // sender.postMessage(data);
 | 
			
		||||
      onMsg && onMsg(data);
 | 
			
		||||
 
 | 
			
		||||
@@ -486,7 +486,7 @@ export default class UiProp extends Vue {
 | 
			
		||||
 | 
			
		||||
          .normal-data {
 | 
			
		||||
            .value {
 | 
			
		||||
              min-width: 100px;
 | 
			
		||||
              min-width: 50px;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            .key {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user