Jelajahi Sumber

头像样式修改。

tomatozq 5 tahun lalu
induk
melakukan
6f3bbf6802
2 mengubah file dengan 7 tambahan dan 4 penghapusan
  1. 2 2
      .env.development
  2. 5 2
      src/views/base/employeeInfo-list.vue

+ 2 - 2
.env.development

@@ -1,4 +1,4 @@
-#VUE_APP_BACKEND_URL=http://wisdomhouse.sudaonline.net
-VUE_APP_BACKEND_URL=http://127.0.0.1:8086/smart-community-server
+VUE_APP_BACKEND_URL=http://wisdomhouse.sudaonline.net
+#VUE_APP_BACKEND_URL=http://127.0.0.1:8086/smart-community-server
 #VUE_APP_BACKEND_URL=http://zldb.xiaoxinda.com:8088/smart-community-server
 #VUE_APP_BACKEND_URL=http://kr6zr7.natappfree.cc/smart-community-server/

+ 5 - 2
src/views/base/employeeInfo-list.vue

@@ -90,8 +90,11 @@
         <template slot-scope="{row}">
           <a :href="row.photo" target="_blank">
             <el-avatar
-              size="small"
-              :src="row.photo+'?x-oss-process=image/resize,m_lfit,h_100,w_100'"
+              size="large"
+              fit="cover"
+              shape="circle"
+              :src="row.photo+'?x-oss-process=image/resize,m_lfit,w_100'"
+              :key="row.id"
             ></el-avatar>
           </a>
         </template>