Browse Source

feat:报告预览页面增加source路由参数

yangfeng 3 months ago
parent
commit
4ca94d2457
1 changed files with 9 additions and 0 deletions
  1. 9 0
      apps/bigmember_pc/src/views/reportDownload/preview.vue

+ 9 - 0
apps/bigmember_pc/src/views/reportDownload/preview.vue

@@ -41,6 +41,15 @@ export default {
     }
     }
   },
   },
   created() {
   created() {
+    // 新增路由参数处理
+    if (!this.$route.query.source) {
+      this.$router.replace({
+        query: {
+          ...this.$route.query,
+          source: 'bidCreditReportPreview'
+        }
+      })
+    }
     if (this.$route.query && this.$route.query.url) {
     if (this.$route.query && this.$route.query.url) {
       this.pdfUrl = decodeURIComponent(this.$route.query.url)
       this.pdfUrl = decodeURIComponent(this.$route.query.url)
       this.loading = false
       this.loading = false