[add] 接webview事件
This commit is contained in:
parent
25ea4df6f8
commit
a60dd01944
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user