yeguodong 1 månad sedan
förälder
incheckning
872fd5fd30
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. 1 1
      src/auto-imports.d.ts
  2. 3 2
      src/utils/requestFuYou.js

+ 1 - 1
src/auto-imports.d.ts

@@ -65,6 +65,6 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }

+ 3 - 2
src/utils/requestFuYou.js

@@ -2,6 +2,7 @@ import axios from "axios";
 import md5 from "js-md5";
 import xml2js from "xml2js";
 import {ElMessage, ElMessageBox} from "element-plus";
+import env from "@/utils/setting";
 
 // const baseURL = process.env.VITE_MATERNALChild_URL
 const baseURL = import.meta.env.VITE_MATERNALChild_URL;
@@ -128,7 +129,7 @@ async function fuYouRequest(obj, type) {
         // return false
         // 实际调用代码(由于跨域限制,可能需要通过代理调用)
         const response = await axios.post(
-            "http://localhost:3000/fuYou/mchis-controller/services/Mchis?wsdl&sign=" +
+            env.VITE_BASE_URL + "/mchis-controller/services/Mchis?wsdl&sign=" +
             sign,
 
             `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
@@ -202,7 +203,7 @@ async function maternalChildLogin() {
         console.log("signObj----------", signObj);
         let sign = encodeUnicode(JSON.stringify(signObj));
         const response = await axios.post(
-            "http://localhost:3000/fuYou/mchis-controller/services/Mchis?wsdl&sign=" +
+            env.VITE_BASE_URL + "/mchis-controller/services/Mchis?wsdl&sign=" +
             sign,
             `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 				<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">