no message

This commit is contained in:
kuaifan 2025-07-30 21:55:49 +08:00
parent a437e3cbd3
commit a0579318bd
2 changed files with 18 additions and 2 deletions

View File

@ -126,6 +126,8 @@ export default {
data() { data() {
return { return {
appInter: null, appInter: null,
appActivated: true,
countDown: Math.min(30, 60 - $A.daytz().second()), countDown: Math.min(30, 60 - $A.daytz().second()),
lastCheckUpgradeYmd: $A.daytz().format('YYYY-MM-DD'), lastCheckUpgradeYmd: $A.daytz().format('YYYY-MM-DD'),
} }
@ -615,6 +617,7 @@ export default {
$A.eeuiAppHideWebviewSnapshot() $A.eeuiAppHideWebviewSnapshot()
// APP // APP
window.__onAppActive = () => { window.__onAppActive = () => {
this.appActivated = true
this.autoTheme() this.autoTheme()
$A.updateTimezone() $A.updateTimezone()
$A.IDBTest() $A.IDBTest()
@ -628,7 +631,20 @@ export default {
} }
// APP // APP
window.__onAppDeactive = () => { window.__onAppDeactive = () => {
$A.eeuiAppGetWebviewSnapshot(ok => ok && $A.eeuiAppShowWebviewSnapshot()); this.appActivated = false
setTimeout(() => {
if (this.appActivated) {
// APP
return;
}
$A.eeuiAppGetWebviewSnapshot(ok => {
if (!ok || this.appActivated) {
// APP
return;
}
$A.eeuiAppShowWebviewSnapshot()
});
}, 500);
} }
// //
window.__onPagePause = () => { window.__onPagePause = () => {

@ -1 +1 @@
Subproject commit 494233074d001a8049b6b2cab9006fd517cd3ed4 Subproject commit cbb7f4208aee524f27a178655a261796ab39f94a