zhaoke 8 months ago
parent
commit
433105eff9
2 changed files with 5 additions and 1 deletions
  1. 4 0
      src/styles/index.scss
  2. 1 1
      src/views/login/index.vue

+ 4 - 0
src/styles/index.scss

@@ -591,6 +591,10 @@ li {
   background-color: #eaeef9;
   background-color: #eaeef9;
 }
 }
 
 
+.el-avatar>img{
+  max-width: 100%;
+}
+
 /*二级弹框背景*/
 /*二级弹框背景*/
 .ej-dialog-bg {
 .ej-dialog-bg {
   background: #f5f7fa !important;
   background: #f5f7fa !important;

+ 1 - 1
src/views/login/index.vue

@@ -2,7 +2,7 @@
   <div class="login-container">
   <div class="login-container">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
       <div class="title-container flex-wrap">
       <div class="title-container flex-wrap">
-        <el-avatar :size="36" :src="imgSrc" @error="errorHandler">
+        <el-avatar :size="40" shape="square" :src="imgSrc" @error="errorHandler">
           <img src="@/assets/logo/error.png">
           <img src="@/assets/logo/error.png">
         </el-avatar>
         </el-avatar>
         <!-- <el-divider direction="vertical"></el-divider> -->
         <!-- <el-divider direction="vertical"></el-divider> -->