Explorar o código

update 图片 不显示 修正

15724580513 %!s(int64=4) %!d(string=hai) anos
pai
achega
8faff1b4ec
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      components/news/NewsList.vue
  2. 2 1
      部署.md

+ 1 - 1
components/news/NewsList.vue

@@ -1,5 +1,5 @@
 <template>
-  <li>
+  <li v-if="newsData">
     <div class="newsInfor-img-box" :style="{backgroundImage: 'url(' + newsData.pic ||newsInforImg + ')'}"></div>
     <div class="newsInfor-list-content">
       <h5>{{newsData.title}}</h5>

+ 2 - 1
部署.md

@@ -1,4 +1,5 @@
-## 环境配置
+## 环境配置 
+[参考文献](https://www.caorui.net/blog/103539593642508288.html)
 - 安装node
 
 > 部署流程