Forráskód Böngészése

修复报告下载

wangtao 4 napja
szülő
commit
087e47d299
3 módosított fájl, 5 hozzáadás és 2 törlés
  1. 1 0
      src/config.js
  2. 3 2
      src/pages/business/mhxf/fireReport/index.vue
  3. 1 0
      src/pages/login.vue

+ 1 - 0
src/config.js

@@ -9,6 +9,7 @@ export default {
   //#endif
 
   //#ifdef H5
+  // baseUrl: "https://gateWay.usky.cn/prod-api",
   baseUrl: import.meta.env.MODE === "production" ? `https://${window.location.host}/prod-api` : `http://192.168.10.165:801/dev-api`,
   //#endif
 

+ 3 - 2
src/pages/business/mhxf/fireReport/index.vue

@@ -73,8 +73,9 @@ function reportInfoListApi() {
 function handleDownload(reportPath) {
   proxy.$modal.loading("报告下载中,请耐心等待...");
 
-  setTimeout(() => {
+  // setTimeout(() => {
     //  #ifdef H5
+    // alert(reportPath)
     window.open(reportPath);
     // #endif
 
@@ -136,7 +137,7 @@ function handleDownload(reportPath) {
     // #endif
 
     proxy.$modal.closeLoading();
-  }, 2000);
+  // }, 2000);
 }
 
 /**

+ 1 - 0
src/pages/login.vue

@@ -182,6 +182,7 @@ function init() {
 
   if (window.location.host.indexOf("localhost") != -1) {
     useStore.GetMobileTenantConfig({ url: linkUrl.value });
+    // useStore.GetMobileTenantConfig({ url: "manager.usky.cn" });
   } else {
     linkUrl.value = window.location.host;
     useStore.GetMobileTenantConfig({ url: linkUrl.value });