Pārlūkot izejas kodu

解决侵权分析跳转不到对比界面问题

zhuliu 1 gadu atpakaļ
vecāks
revīzija
4a67f8a0be

+ 6 - 2
src/views/project/patentDetails/index.vue

@@ -95,7 +95,9 @@ export default {
   mounted() {
     if(this.search && !this.search.fromPath){
       this.search.fromPath = window.history.length
-      this.currentState = window.history.state.key
+      if(window.history.state){
+        this.currentState = window.history.state.key
+      }
       var that = this
       window.addEventListener('popstate', function(event) {
         // console.log(event,that.currentState,event.state.key)
@@ -236,7 +238,9 @@ export default {
         this.getContrast()
       }
       this.getPiZhuData()
-      this.currentState = window.history.state.key
+      if(window.history.state){
+        this.currentState = window.history.state.key
+      }
       this.$router.push(
         {
           path: '/patentDetails/' + this.patentNo,

+ 1 - 1
src/views/report/components/index.vue

@@ -681,7 +681,7 @@ export default {
             query: {
               projectId: row.id,
               reportType: row.reportType,
-              taskType:3
+              taskType:'3'
             }
           }
         )