Skip to content

Commit

Permalink
Merge pull request #14 from DesnLee/master
Browse files Browse the repository at this point in the history
feat(my): fix a disable btn issue and delete console.log
  • Loading branch information
DesnLee authored Jul 5, 2022
2 parents 2450ba9 + 9d25895 commit 5831303
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/store/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '';
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/views/My.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class="upload-btn"
type="info"
plain
:disabled="uploadIsLoading || downloadIsLoading"
:disabled="syncIsDisabled"
size="small"
:loading="uploadIsLoading"
@click="sync('upload')"
Expand All @@ -40,7 +40,7 @@
class="download-btn"
type="primary"
size="small"
:disabled="uploadIsLoading || downloadIsLoading"
:disabled="syncIsDisabled"
:loading="downloadIsLoading"
@click="sync('download')"
>
Expand Down

0 comments on commit 5831303

Please sign in to comment.