zouyong hace 5 años
padre
commit
a6e140eea7
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      assets/script/game/component/BtnOpenPanel.ts

+ 1 - 3
assets/script/game/component/BtnOpenPanel.ts

@@ -30,9 +30,7 @@ export default class BtnOpenPanel extends cc.Component {
 
 
     private async openPanel() {
     private async openPanel() {
         if (!this.panel_name) return;
         if (!this.panel_name) return;
-        let result = await mk.ui.openPanel(this.panel_name, this.open_type);
-        console.log("result:",result);
-        
+        await mk.ui.openPanel(this.panel_name, this.open_type);        
         const c_count = this.onComplete.length;
         const c_count = this.onComplete.length;
         for (let i = 0; i < c_count; i++) {
         for (let i = 0; i < c_count; i++) {
             if (this.onComplete[i].handler) this.onComplete[i].emit([])
             if (this.onComplete[i].handler) this.onComplete[i].emit([])