[add] 清除暫存

This commit is contained in:
2021-12-28 23:37:22 +08:00
parent 8b108f2dd8
commit c069ccd74e
5 changed files with 151 additions and 22 deletions

20
assets/Script/Manager.ts Normal file
View 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
}

View File

@@ -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;
}
}