浏览代码

修改报错

liuYb 4 年之前
父节点
当前提交
98e5299526
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/data/components/InfoListItemDetail.vue

+ 3 - 1
src/views/data/components/InfoListItemDetail.vue

@@ -4,7 +4,7 @@
       <p class="data_detail">数据详情</p>
     </div>
     <div class="content">
-      <div class="content_datail" v-if="detailData[nowIndex].informationName">
+      <div class="content_datail" v-if="status">
         <div class="detail">
           <span>资料名称:</span>
           <span>{{ detailData[nowIndex].informationName }}</span>
@@ -83,6 +83,7 @@ export default {
   components: {},
   data() {
     return {
+      status: false,
       dataObj: {},
       onlineUrl: "http://8.136.230.133:8080",
       informationId: this.$route.query.informationId || "",
@@ -165,6 +166,7 @@ export default {
             this.detailData = res.data.data;
             console.log(this.detailData);
             this.showDetail();
+            this.status = true;
           }
         })
         .catch((err) => {