From f248207e3cb568b3d1f1e5be07a92dc915e89731 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 02 八月 2022 11:28:51 +0800
Subject: [PATCH] 2022-08-02

---
 src/api/index.js |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 3fce8f4..74c1c5b 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -144,6 +144,17 @@
     if (process.env.NODE_ENV === 'production') {
       _url = document.location.origin + '/' + url
     }
+    if (/^http:\/\/(qingqiumarket.cn|cloud.mk9h.cn|sso.mk9h.cn)/.test(_url)) {
+      _url = window.GLOB.location + ':8080/' + url
+      if (process.env.NODE_ENV === 'production') {
+        _url = document.location.origin + ':8080/' + url
+      }
+    } else if (/^https:\/\/(qingqiumarket.cn|cloud.mk9h.cn|sso.mk9h.cn)/.test(_url)) {
+      _url = window.GLOB.location + ':8443/' + url
+      if (process.env.NODE_ENV === 'production') {
+        _url = document.location.origin + ':8443/' + url
+      }
+    }
     
     if (param) {
       return axios({

--
Gitblit v1.8.0