diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index 2ba996f..6cf6c7d 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -29,17 +29,18 @@ export default class Manager extends cc.Component { let data: any = e.data; let method: string = data.method; let value: any = data.value; - self.Birdge(method, ...value) + self.Birdge(method, ...value); }, false); if (!window["Bridge"]) { window["Bridge"] = function (method: string = "", value: string = ""): void { - self.Birdge(method, value) + self.Birdge(method, value); }; } let href: string = window.location.href; - this.webview.url = `https://karolchang.github.io/jm-expense-vue-ts/?host=${href}&ignore=${Date.now()}`; + let url: string = `https://karolchang.github.io/jm-expense-vue-ts/?host=${href}&ignore=${Date.now()}`; + this.webview.url = url; // this.webview.url = `http://localhost:8080/jm-expense-vue-ts/?host=${href}&ignore=${Date.now()}`; this.webview.node.active = true;