You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
553 B
34 lines
553 B
<template>
|
|
<ContentBase>
|
|
<div>
|
|
{{ $store.state.user.username }}
|
|
</div>
|
|
</ContentBase>
|
|
</template>
|
|
|
|
<script>
|
|
import ContentBase from '../components/ContentBase';
|
|
import { useStore } from 'vuex';
|
|
import router from '../router/index.js';
|
|
|
|
export default {
|
|
name: 'UserProfileView',
|
|
components: {
|
|
ContentBase,
|
|
},
|
|
setup(){
|
|
let store = useStore();
|
|
if (!store.state.user.is_login){
|
|
router.push({name:'login'});
|
|
}
|
|
return {
|
|
store,
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
</style>
|
|
|