base settings operations

This commit is contained in:
Julian Krauser 2025-04-26 09:21:27 +02:00
parent beaf6a5926
commit 9bd663f266
3 changed files with 140 additions and 2 deletions

View file

@ -18,6 +18,7 @@ import { defineComponent } from "vue";
import { mapState, mapActions } from "pinia";
import MainTemplate from "@/templates/Main.vue";
import { useAbilityStore } from "@/stores/ability";
import { useSettingStore } from "@/stores/admin/management/setting";
</script>
<script lang="ts">
@ -25,7 +26,11 @@ export default defineComponent({
computed: {
...mapState(useAbilityStore, ["can"]),
},
mounted() {},
methods: {},
mounted() {
this.fetchSettings();
},
methods: {
...mapActions(useSettingStore, ["fetchSettings"]),
},
});
</script>