Browse Source

打包配置修改

chenlei 2 weeks ago
parent
commit
3855c9a2a5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .env.production
  2. 1 1
      src/views/report/Detail.vue

+ 1 - 1
.env.production

@@ -1,7 +1,7 @@
 # 接口地址
 VITE_APP_API_URL="/api"
 # 路由根地址
-VITE_APP_BASE_URL="/h5"
+VITE_APP_BASE_URL="/"
 # 打包输入文件名
 VITE_APP_OUTDIR="eta_mini_h5"
 # 参数解密key

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

@@ -107,7 +107,7 @@ getReportInfo()
 
 // // 修改报告中嵌入的图表地址
 function modifyReportContentIframeData(str){
-  let temStr=str.replace(/http:\/\/etachart.jrqh.com.cn:8001/g,'https://eta.jrqh.com.cn:59091')
+  let temStr=str.replace(/http:\/\/etachart.jrqh.com.cn:8001/g,'https://eta2.jrqh.com.cn:59091')
   temStr=temStr.replace(/http:\/\/etaminio.jrqh.com.cn:9000/g,'https://eta.jrqh.com.cn:59090')
   return temStr
 }