Skip to content

Commit

Permalink
手动备份时同步进度备份图标
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnotech committed Jul 3, 2022
1 parent 8a80354 commit 6947adb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/renderer/src/components/Game.vue
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ async function getProgressModuleStatus() {
}
async function backupProgress(force?: boolean) {
backupDisplayStatus.value = "pending"
backupDisplayTip.value = "正在备份进度"
message.loading({
content: "正在备份游戏进度...",
key: "backup",
Expand All @@ -482,6 +484,8 @@ async function backupProgress(force?: boolean) {
let gameInfo = JSON.parse(JSON.stringify(info.value))
let r = await bridge('backup', gameInfo, force) as Result<null, string>
if (r.ok) {
backupDisplayStatus.value = "success"
backupDisplayTip.value = `进度备份成功(${(new Date()).toLocaleString()})`
message.success({
content: "备份游戏进度成功",
key: "backup",
Expand Down

0 comments on commit 6947adb

Please sign in to comment.