Browse Source

数据图表版本

zhengjinyi 1 year ago
parent
commit
2efccf7d66

+ 1 - 3
src/main/resources/static/js/supplier-center/encyclopedia/charts.js

@@ -88,9 +88,7 @@ const chartContent = new Vue({
         this.queryParams.shopId = getUrlParam("shopId");
         this.queryParams.shopId = getUrlParam("shopId");
         this.queryParams.marketReportId = getUrlParam("marketReportId") ? getUrlParam("marketReportId") : '';
         this.queryParams.marketReportId = getUrlParam("marketReportId") ? getUrlParam("marketReportId") : '';
         this.queryParams.type = getUrlParam("type") ? getUrlParam("type") : '';
         this.queryParams.type = getUrlParam("type") ? getUrlParam("type") : '';
-        if(this.queryParams.type*1 === 1){
-            this.isPreview = false
-        }
+        this.isPreview = getUrlParam("type") !== '1'
         this.openFullScreen2()
         this.openFullScreen2()
     }
     }
 });
 });