21 lines
449 B
TypeScript
21 lines
449 B
TypeScript
|
const { ccclass, property } = cc._decorator;
|
||
|
|
||
|
@ccclass
|
||
|
export default class Manager extends cc.Component {
|
||
|
//#region 外調參數
|
||
|
|
||
|
@property({ type: cc.WebView })
|
||
|
public webview: cc.WebView = null
|
||
|
|
||
|
//#endregion
|
||
|
|
||
|
//#region Lifecycle
|
||
|
|
||
|
protected onLoad(): void {
|
||
|
this.webview.url = `https://karolchang.github.io/jm-expense-vue-ts/?ignore=${Date.now()}`;
|
||
|
this.webview.node.active = true
|
||
|
}
|
||
|
|
||
|
//#endregion
|
||
|
}
|