introduce vuex
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2021-09-19 17:30:37 +02:00
parent 94d2a98b96
commit a408cae686
10 changed files with 129 additions and 46 deletions

View File

@ -40,9 +40,11 @@ SPDX-License-Identifier: AGPL-3.0-or-later
</div>
</template>
<script>
import RequestMixin from "@/mixins/request.mixin"
import { mapState } from 'vuex'
import ProfileList from "@/components/ProfileList";
import RequestMixin from '@/mixins/request.mixin'
import ProfileList from '@/components/ProfileList';
export default {
name: "profileView",
@ -50,10 +52,10 @@ export default {
components: {
ProfileList,
},
data() {
return {
profile: null
};
computed: {
...mapState({
profile: 'currentProfile'
})
},
async created() {
await this.initViewPage();