[add] url
This commit is contained in:
parent
63b95b3782
commit
3a620cdac1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user