src/index.js
@@ -94,7 +94,7 @@ } if (process.env.NODE_ENV === 'production') { // 用于校验是否存在开发权限 let _service = window.location.href.replace(/\/index.html(.*)/ig, '').replace(new RegExp(document.location.origin + '/?', 'ig'), '') let _service = window.location.href.replace(/\/index.html(.*)|\/#(.*)/ig, '').replace(new RegExp(document.location.origin + '/?', 'ig'), '') window.GLOB.linkurl = window.location.href.split('#')[0] window.GLOB.service = _service ? _service + '/' : '' } else {