king
2020-01-10 1b0fd0a20d54068f0f4716177780e00a75b860ef
src/index.js
@@ -22,18 +22,28 @@
  )
}
document.title = (window.GLOB && window.GLOB.title) || 'MinkeSoft'
window.GLOB = window.GLOB || {}
document.title = window.GLOB.title || 'MinkeSoft'
const option = {
  white: 'mk-white'
}
if (window.GLOB && window.GLOB.style && option[window.GLOB.style]) {
if (window.GLOB.style && option[window.GLOB.style]) {
  document.getElementById('root').className = option[window.GLOB.style]
}
if (process.env.NODE_ENV === 'production') {
  let service = window.GLOB.service ? (/\/$/.test(window.GLOB.service) ? window.GLOB.service : window.GLOB.service + '/') : ''
  window.GLOB.subSystemApi = document.location.origin + '/' + service + 'webapi/dostar'
} else {
  window.GLOB.subSystemApi = 'http://qingqiumarket.cn/mkwms/webapi/dostar'
}
sessionStorage.removeItem('isEditState')
render(Route)
serviceWorker.unregister()