update
This commit is contained in:
1 parent
6fa6e68dd8
commit
91a5420a76
8 files changed
+88
-9
No files matched your search
+15
@@ -1,3 +1,18 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import UserService from '@/services/user/service';
|
||||
import { IUserDetailResponse } from './services/user/types';
|
||||
|
||||
export default defineComponent({
|
||||
mounted() {
|
||||
UserService.getMe().then(({ data: data }: { data: IUserDetailResponse }) => {
|
||||
console.log('data', data);
|
||||
this.$store.dispatch('setUser', data);
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in new issue
Block a user