浏览代码

增加判断

db 2 年之前
父节点
当前提交
1f43f35bf0
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/cygxPc/report.vue

+ 3 - 1
src/views/cygxPc/report.vue

@@ -57,7 +57,8 @@ const { reportInfo, reportResearch } = toRefs(state);
 
 <template>
   <div class="container-cygx-pc" v-if="haveData" :class="reportInfo.IsResearch ? 'no-cv' : ''">
-    <div class="z-index-content">
+   <template v-if="Object.keys(reportInfo).length==0">
+     <div class="z-index-content">
       <div class="content-top">
         <div class="report-title">{{ reportInfo.Title }}</div>
         <div class="report-text">
@@ -96,6 +97,7 @@ const { reportInfo, reportResearch } = toRefs(state);
     <div class="btn-returntop">
       <img src="~@/assets/cygx/returntop.png" @click="scrolltop" style="width: 40px" />
     </div>
+   </template>
     <dlg :showTips="showTips" :reportInfo="reportInfo" @hideDlg="showTips = false" />
   </div>
   <div v-else class="nodata-cygx-pc">