浏览代码

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

yangfeng 3 月之前
父节点
当前提交
4ca94d2457
共有 1 个文件被更改,包括 9 次插入0 次删除
  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() {
+    // 新增路由参数处理
+    if (!this.$route.query.source) {
+      this.$router.replace({
+        query: {
+          ...this.$route.query,
+          source: 'bidCreditReportPreview'
+        }
+      })
+    }
     if (this.$route.query && this.$route.query.url) {
       this.pdfUrl = decodeURIComponent(this.$route.query.url)
       this.loading = false