update: 新增设备充电通知
This commit is contained in:
@@ -109,6 +109,7 @@ export default defineStore("store", {
|
||||
tips: "", // 当前提示文案(用于 HeaderProgress 恢复状态,替代 uni.$emit 避免时序问题)
|
||||
},
|
||||
dailyCount: getDefaultDailyCount(),
|
||||
deviceChargingDialogVisible: false,
|
||||
}),
|
||||
|
||||
// 计算属性
|
||||
@@ -187,6 +188,12 @@ export default defineStore("store", {
|
||||
...(data || {}),
|
||||
};
|
||||
},
|
||||
showDeviceChargingDialog() {
|
||||
this.deviceChargingDialogVisible = true;
|
||||
},
|
||||
hideDeviceChargingDialog() {
|
||||
this.deviceChargingDialogVisible = false;
|
||||
},
|
||||
clearSessionState() {
|
||||
this.$patch({
|
||||
user: getDefaultUser(),
|
||||
@@ -194,6 +201,7 @@ export default defineStore("store", {
|
||||
online: false,
|
||||
game: getDefaultGame(),
|
||||
dailyCount: getDefaultDailyCount(),
|
||||
deviceChargingDialogVisible: false,
|
||||
});
|
||||
uni.removeStorageSync(PERSISTED_STORE_KEY);
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user