Explorar o código

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

yangfeng hai 4 meses
pai
achega
4ca94d2457
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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