get settings

This commit is contained in:
hay-kot 2021-04-25 17:45:45 -08:00
commit d578a7c41d
2 changed files with 5 additions and 4 deletions

View file

@ -46,6 +46,7 @@ export default {
this.darkModeAddEventListener(); this.darkModeAddEventListener();
this.$store.dispatch("requestAppInfo"); this.$store.dispatch("requestAppInfo");
this.$store.dispatch("requestCustomPages"); this.$store.dispatch("requestCustomPages");
this.$store.dispatch("requestSiteSettings");
}, },
methods: { methods: {

View file

@ -30,9 +30,9 @@ const actions = {
commit("setSettings", settings); commit("setSettings", settings);
}, },
async requestCustomPages({ commit }) { async requestCustomPages({ commit }) {
const customPages = await api.siteSettings.getPages() const customPages = await api.siteSettings.getPages();
commit("setCustomPages", customPages) commit("setCustomPages", customPages);
} },
}; };
const getters = { const getters = {