瀏覽代碼

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

zhuliu 1 年之前
父節點
當前提交
4a67f8a0be
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 6 2
      src/views/project/patentDetails/index.vue
  2. 1 1
      src/views/report/components/index.vue

+ 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'
             }
           }
         )