update info
This commit is contained in:
1 parent
6bd5bb0aa0
commit
6bc2988a32
1 file changed
+7
@@ -17,6 +17,13 @@ export default defineComponent({
|
||||
return {
|
||||
locale: zhCn
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// if access token is already set, try to get user info
|
||||
const accessToken = this.$store.getters.accessToken;
|
||||
if (accessToken) {
|
||||
this.$store.dispatch('getMe');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in new issue
Block a user