guhongwei 4 년 전
부모
커밋
d551c04b0f
2개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 2
      src/views/technical/detail/parts/questionInfo.vue
  2. 5 2
      src/views/userCenter/projectInfo/parts/questionInfo.vue

+ 5 - 2
src/views/technical/detail/parts/questionInfo.vue

@@ -9,8 +9,11 @@
           <span>发布时间:{{ info.create_date || '暂无' }}</span>
           <span>信息来源:{{ info.origin || '暂无' }}</span>
         </el-col>
-        <el-col :span="24" class="image">
-          <el-image :src="info.img_path"></el-image>
+        <el-col :span="24" class="image" v-if="info.img_path">
+          <el-image :src="info.img_path">
+            <div slot="error" class="image-slot">
+              <i class="el-icon-picture-outline"></i></div
+          ></el-image>
         </el-col>
         <el-col :span="24" class="content">
           <p v-html="info.content"></p>

+ 5 - 2
src/views/userCenter/projectInfo/parts/questionInfo.vue

@@ -9,8 +9,11 @@
           <span>发布时间:{{ info.create_date || '暂无' }}</span>
           <span>信息来源:{{ info.origin || '暂无' }}</span>
         </el-col>
-        <el-col :span="24" class="image">
-          <el-image :src="info.img_path"></el-image>
+        <el-col :span="24" class="image" v-if="info.img_path">
+          <el-image :src="info.img_path">
+            <div slot="error" class="image-slot">
+              <i class="el-icon-picture-outline"></i></div
+          ></el-image>
         </el-col>
         <el-col :span="24" class="content">
           <p v-html="info.content"></p>