Commit 6b3de054 authored by lvweichao's avatar lvweichao

update: fix store user

parent c58cec36
...@@ -10,7 +10,7 @@ import { redirectToLogin } from './utils/util'; ...@@ -10,7 +10,7 @@ import { redirectToLogin } from './utils/util';
export default { export default {
async mounted () { async mounted () {
if (this.$store.state.permissions && this.$store.status.userInfo) return if (this.$store.state.permissions && this.$store.state.userInfo) return
const { status, user } = await fetchCurrentUser(); const { status, user } = await fetchCurrentUser();
// {"status":"success","user":{"userid":"732473439","name":"吕伟朝","email":"lvweichao@yidian-inc.com","avatar":""}} // {"status":"success","user":{"userid":"732473439","name":"吕伟朝","email":"lvweichao@yidian-inc.com","avatar":""}}
if (status === 'success') { if (status === 'success') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment