Browse Source

修改报告详情中的图片地址

jwyu 9 months ago
parent
commit
658ce8851c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/report/Detail.vue

+ 2 - 1
src/views/report/Detail.vue

@@ -75,7 +75,8 @@ getReportInfo()
 
 // 修改报告中嵌入的图表地址
 function modifyReportContentIframeData(str){
-  return str.replace(/http:\/\/eta.dwfutures.com:8001/g,'https://dwresearch.dwfutures.com')
+  let temStr=str.replace(/http:\/\/eta.dwfutures.com:8001/g,'https://dwresearch.dwfutures.com')
+  return temStr.replace(/http:\/\/58.210.74.21:9100\/etastatic/g,'https://dwresearch.dwfutures.com/etastatic')
 }
 
 // 给报告详情中图表加参数