浏览代码

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

jwyu 9 月之前
父节点
当前提交
658ce8851c
共有 1 个文件被更改,包括 2 次插入1 次删除
  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')
 }
 
 // 给报告详情中图表加参数