From 66cc7818cf5e13c44f4372e7d47fb72df7d2f752 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 16 九月 2022 10:30:14 +0800
Subject: [PATCH] Merge branch 'master' into positec

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

diff --git a/src/index.js b/src/index.js
index 3abe53d..0528488 100644
--- a/src/index.js
+++ b/src/index.js
@@ -210,11 +210,13 @@
       }
       GLOB.service = _service ? _service + '/' : ''
       GLOB.host = window.location.host + (_service ? '_' + _service : '')
+      GLOB.baseurl = document.location.origin + '/' + GLOB.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, '') : '')
+      GLOB.baseurl = GLOB.location + '/' + GLOB.service
     }
 
     let mark = sessionStorage.getItem('system_mark')

--
Gitblit v1.8.0