From a0d799c832e6b237f63e437881ce3e7e7b025b58 Mon Sep 17 00:00:00 2001 From: Peng-YM <1048217874pengym@gmail.com> Date: Sat, 12 Dec 2020 17:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/User.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/src/views/User.vue b/web/src/views/User.vue index 32a108f..202b16b 100644 --- a/web/src/views/User.vue +++ b/web/src/views/User.vue @@ -146,7 +146,7 @@ export default { }, // eslint-disable-next-line no-unused-vars - sync(action) { + async sync(action) { const setLoading = (status) => { if (action === 'upload') { this.status.uploading = status; @@ -164,10 +164,6 @@ export default { axios.get(`/utils/backup?action=${action}`).then(resp => { if (resp.data.status === 'success') { this.$store.commit("SET_SUCCESS_MESSAGE", `${action === 'upload' ? "备份" : "还原"}成功!`); - if (action === 'upload') { - this.settings.syncTime = new Date().getTime(); - } - axios.patch(`/settings`, this.settings); this.updateStore(this.$store); } }).catch(err => {