Explorar el Código

图片动态路径配置

wjj hace 4 años
padre
commit
ac56155663
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/pages/Homepage/LoginCard.vue

+ 1 - 1
src/pages/Homepage/LoginCard.vue

@@ -1,7 +1,7 @@
 <template>
   <el-card class="login-card">
     <div class="login-welcome">
-      <img :src="!this.userImg?require('../../assets/image/' + logo_background):this.userImg" alt="welcome-img"
+      <img :src="!this.userImg?logo_background:this.userImg" alt="welcome-img"
            class="pull-left welcome-img">
       <div style="margin-left: 46px">
         <div class="welcome-title">