move api calls to created event (#559)

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-06-17 19:48:54 -08:00
committed by GitHub
parent 71a5de3432
commit d272784469
31 changed files with 70 additions and 55 deletions

View File

@@ -82,7 +82,7 @@ export default {
} else return this.$t("settings.backup.partial-backup");
},
},
mounted() {
created() {
this.resetData();
this.getAvailableBackups();
},

View File

@@ -78,15 +78,21 @@ export default {
hideImage: false,
};
},
mounted() {
this.getVersion();
created() {
this.showSidebar = !this.isMobile;
},
watch: {
user() {
this.hideImage = false;
},
isMain(val) {
if (val) {
this.$store.dispatch("requestCustomPages");
} else {
this.getVersion();
}
},
},
computed: {