pengjingzhao 1 ay önce
ebeveyn
işleme
3efd17a44f
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 2 2
      src/utils/requestFuYou.js
  2. 2 2
      vite.config.js

+ 2 - 2
src/utils/requestFuYou.js

@@ -9,8 +9,8 @@ const result = ref(null);
 const error = ref("");
 const loading = ref(false);
 const loginCount = ref(0);
-// const url = env.VITE_BASE_URL + "/mchis-controller/services/Mchis?wsdl&sign="
-const url = "http://localhost:3000/fuYou/mchis-controller/services/Mchis?wsdl&sign="
+const url = env.VITE_BASE_URL + "/mchis-controller/services/Mchis?wsdl&sign="
+// const url = "http://localhost:3000/fuYou/mchis-controller/services/Mchis?wsdl&sign="
 
 function generateRandom24Digit() {
     let randomNum = "";

+ 2 - 2
vite.config.js

@@ -91,8 +91,8 @@ export default defineConfig(({ mode }) => {
       proxy: {
         "/fuYou": {
           //这里配置运行时服务地址
-            target: "http://58.33.165.250:20011",
-          // target: "http://192.168.100.140:18080",
+          //   target: "http://58.33.165.250:20011",
+          target: "http://192.168.100.140:18080",
           secure: false, //如果运行时服务是https,此处配置为true
           changeOrigin: true, //支持跨域调用,这里配置为true
           rewrite: path => path.replace(/^\/fuYou/, ""),