From a60dd01944f9fe367b56d054361f88da5b402fc5 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Tue, 4 Jan 2022 22:46:30 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E6=8E=A5webview=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Manager.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index 90d17c2..2fec9c0 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -32,10 +32,9 @@ export default class Manager extends cc.Component { console.log(`not function: ${method}, value: ${value}`); }, false); let href: string = window.location.href; - // window.open(`https://jianmiau.ml:3334/googletest?host=${href}`, "newwindow", "height=100,width=400"); - // this.webview.url = `https://karolchang.github.io/jm-expense-vue-ts/?ignore=${Date.now()}`; - this.webview.url = `http://localhost:8080/jm-expense-vue-ts/?ignore=${Date.now()}&host=${href}`; + this.webview.url = `https://karolchang.github.io/jm-expense-vue-ts/?ignore=${Date.now()}`; + // this.webview.url = `http://localhost:8080/jm-expense-vue-ts/?ignore=${Date.now()}&host=${href}`; this.webview.node.active = true; cc.view.setResizeCallback(this._resize.bind(this));