فهرست منبع

fix: 修正用户信息获取后没有存储的bug

ChenYangfan 6 سال پیش
والد
کامیت
33886cb378
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      src/views/login/Login.vue

+ 3 - 0
src/views/login/Login.vue

@@ -41,6 +41,7 @@ export default {
   mounted () {
   mounted () {
     getUserInfo().then(res => {
     getUserInfo().then(res => {
       this.userInfo = res
       this.userInfo = res
+      this.$store.commit(SET_USER_INFO, { userInfo: res })
     })
     })
   },
   },
   methods: {
   methods: {
@@ -90,6 +91,7 @@ export default {
 
 
 .title {
 .title {
   color: #6a7a8a;
   color: #6a7a8a;
+
   span {
   span {
     font-family: 'Courier New', 'Courier', monospace;
     font-family: 'Courier New', 'Courier', monospace;
     font-size: 1.15em;
     font-size: 1.15em;
@@ -125,6 +127,7 @@ export default {
   margin-top: 16px;
   margin-top: 16px;
   font-size: 14px;
   font-size: 14px;
   transition: .1s;
   transition: .1s;
+
   &:hover {
   &:hover {
     color: $theme-blue;
     color: $theme-blue;
   }
   }