From 9d258953245ac0045e5dc250b3fc63790f166d34 Mon Sep 17 00:00:00 2001 From: ljk Date: Tue, 5 Jul 2022 20:41:53 +0800 Subject: [PATCH] feat(my): fix a disable btn issue and delete console.log --- src/store/settings.ts | 3 --- src/views/My.vue | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/store/settings.ts b/src/store/settings.ts index c14cdd400..23080d278 100644 --- a/src/store/settings.ts +++ b/src/store/settings.ts @@ -27,11 +27,8 @@ export const useSettingsStore = defineStore('settingsStore', { }, async editSettings(data: SettingsPostData) { const { data: res } = await settingsApi.setSettings(data); - console.log(res); this.gistToken = res.gistToken || ''; this.githubUser = res.githubUser || ''; - this.syncTime = res.syncTime || 0; - this.theme = res.theme || { darkMode: false }; this.avatarUrl = res.avatarUrl || ''; }, }, diff --git a/src/views/My.vue b/src/views/My.vue index ea82ab8ce..f4524ebf3 100644 --- a/src/views/My.vue +++ b/src/views/My.vue @@ -25,7 +25,7 @@ class="upload-btn" type="info" plain - :disabled="uploadIsLoading || downloadIsLoading" + :disabled="syncIsDisabled" size="small" :loading="uploadIsLoading" @click="sync('upload')" @@ -40,7 +40,7 @@ class="download-btn" type="primary" size="small" - :disabled="uploadIsLoading || downloadIsLoading" + :disabled="syncIsDisabled" :loading="downloadIsLoading" @click="sync('download')" >