sunlupeng 2 anni fa
parent
commit
209301669c
2 ha cambiato i file con 9 aggiunte e 5 eliminazioni
  1. 6 2
      src/components/SiderInfo.vue
  2. 3 3
      src/views/HomeView/Commend.vue

+ 6 - 2
src/components/SiderInfo.vue

@@ -17,7 +17,7 @@
         </div>
         <div class="signin-tip sidebar-block">
             <div class="avatar">
-                <el-avatar :size="65" :src="avatarUrl"></el-avatar>
+                <el-avatar fit="fill" :size="65" :src="avatarUrl"></el-avatar>
                 <span class="name">{{ dataInfo.userName }}</span>
             </div>
             <div class="info">
@@ -282,4 +282,8 @@ destroyed() {
     top: 80px;
     z-index: 5;
     pointer-events: all;
-}</style>
+}
+.el-avatar>img {
+    width: 100%;
+}
+</style>

+ 3 - 3
src/views/HomeView/Commend.vue

@@ -74,7 +74,7 @@ export default {
         };
     },
     created() {
-        this.getList(31);
+        this.getList(32);
     },
     methods: {
         getList(val){
@@ -86,10 +86,10 @@ export default {
         handleClick(tab, event) {
             var name = tab.name;
             if(name=='first'){
-                this.getList(31);
+                this.getList(32);
             }
             if(name=='second'){
-                this.getList(32);
+                this.getList(31);
             }
             if(name=='third'){
                 this.getList(33);