forked from kompetenzinventar/ki-frontend
introduce vuex
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user