|
@@ -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([])
|