added
This commit is contained in:
parent
526610bf7a
commit
13bac9e40c
1 changed files with 42 additions and 0 deletions
42
src/views/PersonalView/List.vue
Normal file
42
src/views/PersonalView/List.vue
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<script setup>
|
||||
import { useAuthStore} from '@/stores/authStore.js'
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
const store = useAuthStore()
|
||||
|
||||
const userData = ref(null)
|
||||
|
||||
onMounted(() => {
|
||||
store.userInfo().then(data => {
|
||||
userData.value = data
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-list hoverable clickable>
|
||||
<n-list-item>
|
||||
<n-thing title="Email" content-style="margin-top: 10px;">
|
||||
{{ userData?.email || "---" }}
|
||||
</n-thing>
|
||||
</n-list-item>
|
||||
|
||||
<n-list-item>
|
||||
<n-thing title="Username" content-style="margin-top: 10px;">
|
||||
{{ userData?.username || "---" }}
|
||||
</n-thing>
|
||||
</n-list-item>
|
||||
|
||||
<n-list-item>
|
||||
<n-thing title="Created At" content-style="margin-top: 10px;">
|
||||
{{ userData?.created_at || "---" }}
|
||||
</n-thing>
|
||||
</n-list-item>
|
||||
|
||||
</n-list>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue