update info

This commit is contained in:
AceDataCloud committed 2023-01-26 00:29:46 +08:00
1 parent 6bd5bb0aa0
commit 6bc2988a32
1 file changed
+7
+7
View File
@@ -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>