소스 검색

项目评价详情页,无history隐藏

xinfeng 6 년 전
부모
커밋
024539b8d6
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      pages/credit/projectDetail/_type.vue

+ 4 - 2
pages/credit/projectDetail/_type.vue

@@ -3,7 +3,7 @@
     <div class="topArea">
       <div class="title">
         {{myInfo.nickname}}的{{typeInfo.name && typeInfo.name.slice(0, 2)}}项目评价
-        <div class="backBox" @click="goBack()">
+        <div class="backBox" @click="goBack()" v-if="historLength > 1">
           <p class="backIcon" />
           <p class="backWord">返回</p>
         </div>
@@ -84,7 +84,8 @@
         ratings: [],
         pageSize: 10,
         typeInfo: {},
-        loading: false
+        loading: false,
+        historLength: 1,
       }
     },
     computed: {
@@ -98,6 +99,7 @@
       this.pageChangeHandler()
     },
     mounted() {
+      this.historLength = history.length
       this.needLogin();
     },
     methods: {