|
@@ -247,6 +247,7 @@
|
|
function getPlatform(type) {
|
|
function getPlatform(type) {
|
|
let res = ''
|
|
let res = ''
|
|
let ajax = new XMLHttpRequest()
|
|
let ajax = new XMLHttpRequest()
|
|
|
|
+
|
|
let url = window._CONFIG['domianURL'] + '/platformConfig/getPlatform/' + type
|
|
let url = window._CONFIG['domianURL'] + '/platformConfig/getPlatform/' + type
|
|
ajax.onreadystatechange = function () {
|
|
ajax.onreadystatechange = function () {
|
|
if (ajax.readyState === 4 && ajax.status === 200) {
|
|
if (ajax.readyState === 4 && ajax.status === 200) {
|
|
@@ -260,12 +261,13 @@
|
|
return res
|
|
return res
|
|
}
|
|
}
|
|
window._CONFIG = {}
|
|
window._CONFIG = {}
|
|
- window._CONFIG['domianURL'] = '/jshERP-boot'
|
|
|
|
|
|
+ window._CONFIG['domianURL'] = `<%= process.env.VUE_APP_BASE_API %>` //process.env.VUE_APP_BASE_API //'/jshERP-boot'
|
|
let statisticsCode = '1cd9bcbaae133f03a6eb19da6579aaba'
|
|
let statisticsCode = '1cd9bcbaae133f03a6eb19da6579aaba'
|
|
window.SYS_TITLE = getPlatform('name')
|
|
window.SYS_TITLE = getPlatform('name')
|
|
window.SYS_URL = getPlatform('url')
|
|
window.SYS_URL = getPlatform('url')
|
|
window._statistics = 'https://hm.baidu.com/hm.js?' + statisticsCode
|
|
window._statistics = 'https://hm.baidu.com/hm.js?' + statisticsCode
|
|
document.title = window.SYS_TITLE
|
|
document.title = window.SYS_TITLE
|
|
|
|
+
|
|
//statistics
|
|
//statistics
|
|
var _hmt = _hmt || []
|
|
var _hmt = _hmt || []
|
|
;(function () {
|
|
;(function () {
|