From 79943222ed0edc6bd35ab2858c5eda2bc3246f66 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 28 二月 2022 15:03:45 +0800
Subject: [PATCH] 2022-02-28

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

diff --git a/src/index.js b/src/index.js
index 93ec3e1..c325b21 100644
--- a/src/index.js
+++ b/src/index.js
@@ -190,10 +190,12 @@
         GLOB.linkurl = GLOB.linkurl + 'index.html'
       }
       GLOB.service = _service ? _service + '/' : ''
+      GLOB.host = window.location.host + (_service ? '_' + _service : '')
     } else {
       GLOB.linkurl = ''
       GLOB.location = config.host
       GLOB.service = config.service
+      GLOB.host = config.host.replace(/http(s)?:\/\//ig, '') + (config.service ? '_' + config.service.replace(/\//ig, '') : '')
     }
 
     let mark = sessionStorage.getItem('system_mark')

--
Gitblit v1.8.0