为了持续同步,申请了常驻通知栏权限,在设置中开启后,可以常驻通知栏,进行后台同步。如果不需要,可以在设置中关闭。

This commit is contained in:
2026-09-13 22:02:08 +08:00
parent d9c212785d
commit e62416e5ce
4 changed files with 34 additions and 7 deletions
+3 -1
View File
@@ -234,7 +234,9 @@ struct SettingsPage {
});
} catch (err) {
this.backgroundSync = !value; // 失败回滚 UI
this.getUIContext().getPromptAction().showToast({ message: '设置失败,请重试' });
const msg: string = (err as BusinessError).message !== ''
? (err as BusinessError).message : '请重试';
this.getUIContext().getPromptAction().showToast({ message: `开启失败:${msg}` });
}
}