[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

View File

@@ -77,6 +77,9 @@
],
"_active": true,
"_components": [
{
"__id__": 7
},
{
"__id__": 8
},
@@ -242,9 +245,6 @@
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
@@ -307,16 +307,6 @@
"webviewEvents": [],
"_id": "0dhyrwc5lM/oEUOjnLH8Wx"
},
{
"__type__": "e1b90/rohdEk4SdmmEZANaD",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_id": "darFjTzH1B452j05U2ywfj"
},
{
"__type__": "cc.Canvas",
"_name": "",
@@ -360,5 +350,18 @@
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "56i7y6VTBNEZCKvOCJzojM"
},
{
"__type__": "e1b90/rohdEk4SdmmEZANaD",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"webview": {
"__id__": 6
},
"_id": "b3AScs1lVP7ruEGNmMEKXU"
}
]

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