Browse Source

修改top

lzq 6 years ago
parent
commit
1cf0d80db5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/components/Top.vue

+ 5 - 1
src/components/Top.vue

@@ -32,7 +32,7 @@ export default {
       src2: '../../static/images/logo2.png',
       src2: '../../static/images/logo2.png',
       index: true,
       index: true,
       apply: false,
       apply: false,
-      username:''
+      // username:''
     }
     }
   },
   },
   computed: {
   computed: {
@@ -100,7 +100,11 @@ export default {
   computed:{
   computed:{
     logined(){
     logined(){
       return this.$store.state.logined
       return this.$store.state.logined
+    },
+    username(){
+      return this.$store.state.loginedUser.username
     }
     }
+
   }
   }
 }
 }
 </script>
 </script>