[add] 清除暫存
This commit is contained in:
20
assets/Script/Manager.ts
Normal file
20
assets/Script/Manager.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
@@ -1,9 +0,0 @@
|
||||
const { ccclass, property } = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class webview extends cc.Component {
|
||||
protected onLoad(): void {
|
||||
this.node.getComponent(cc.WebView).url = `https://karolchang.github.io/jm-expense-vue-ts/?ignore=${Date.now()}`;
|
||||
this.node.active = true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user