网址改为配置
This commit is contained in:
20
jshERP-web/public/index.html
vendored
20
jshERP-web/public/index.html
vendored
@@ -239,22 +239,26 @@
|
|||||||
</style>
|
</style>
|
||||||
<!-- 全局配置 -->
|
<!-- 全局配置 -->
|
||||||
<script>
|
<script>
|
||||||
window._CONFIG = {};
|
function getPlatform(type) {
|
||||||
window._CONFIG['domianURL'] = '/jshERP-boot';
|
let res = '';
|
||||||
let statisticsCode = '1cd9bcbaae133f03a6eb19da6579aaba'
|
|
||||||
let sysTitle;
|
|
||||||
let ajax = new XMLHttpRequest();
|
let ajax = new XMLHttpRequest();
|
||||||
let url = window._CONFIG['domianURL'] + '/platformConfig/getPlatformName'
|
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) {
|
||||||
sysTitle = ajax.responseText;
|
res = ajax.responseText;
|
||||||
} else {
|
} else {
|
||||||
sysTitle = 'ERP系统';
|
res = 'ERP系统';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ajax.open('get', url, false);
|
ajax.open('get', url, false);
|
||||||
ajax.send(null);
|
ajax.send(null);
|
||||||
window.SYS_TITLE = sysTitle;
|
return res;
|
||||||
|
}
|
||||||
|
window._CONFIG = {};
|
||||||
|
window._CONFIG['domianURL'] = '/jshERP-boot';
|
||||||
|
let statisticsCode = '1cd9bcbaae133f03a6eb19da6579aaba'
|
||||||
|
window.SYS_TITLE = getPlatform("name");
|
||||||
|
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
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<a-card :bordered="false" :body-style="{padding: '5'}">
|
<a-card :bordered="false" :body-style="{padding: '5'}">
|
||||||
<div class="hidden-xs" style="float:right;">当前版本:V3.0</div>
|
<div class="hidden-xs" style="float:right;">当前版本:V3.0</div>
|
||||||
© 2015-2030 {{systemTitle}} - Powered By
|
© 2015-2030 {{systemTitle}} - Powered By
|
||||||
<a href="http://www.huaxiaerp.com/" target="_blank">官方网站</a>
|
<a :href="systemUrl" target="_blank">官方网站</a>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -87,6 +87,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
systemTitle: window.SYS_TITLE,
|
systemTitle: window.SYS_TITLE,
|
||||||
|
systemUrl: window.SYS_URL,
|
||||||
loading: true,
|
loading: true,
|
||||||
center: null,
|
center: null,
|
||||||
statistics: {},
|
statistics: {},
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
<a-row>
|
<a-row>
|
||||||
<a-col>
|
<a-col>
|
||||||
© 2015-2030 {{systemTitle}} - Powered By
|
© 2015-2030 {{systemTitle}} - Powered By
|
||||||
<a style="color:#00458a;" href="http://www.huaxiaerp.com/" target="_blank">官方网站</a>
|
<a style="color:#00458a;" :href="systemUrl" target="_blank">官方网站</a>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,6 +74,7 @@
|
|||||||
return {
|
return {
|
||||||
customActiveKey: "tab1",
|
customActiveKey: "tab1",
|
||||||
systemTitle: window.SYS_TITLE,
|
systemTitle: window.SYS_TITLE,
|
||||||
|
systemUrl: window.SYS_URL,
|
||||||
loginBtn: false,
|
loginBtn: false,
|
||||||
// login type: 0 email, 1 username, 2 telephone
|
// login type: 0 email, 1 username, 2 telephone
|
||||||
loginType: 0,
|
loginType: 0,
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
<a-row>
|
<a-row>
|
||||||
<a-col>
|
<a-col>
|
||||||
© 2015-2030 {{systemTitle}} - Powered By
|
© 2015-2030 {{systemTitle}} - Powered By
|
||||||
<a style="color:#00458a;" href="http://www.huaxiaerp.com/" target="_blank">官方网站</a>
|
<a style="color:#00458a;" :href="systemUrl" target="_blank">官方网站</a>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,6 +107,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
systemTitle: window.SYS_TITLE,
|
systemTitle: window.SYS_TITLE,
|
||||||
|
systemUrl: window.SYS_URL,
|
||||||
form: null,
|
form: null,
|
||||||
randCode:'',
|
randCode:'',
|
||||||
randCodeImage:'',
|
randCodeImage:'',
|
||||||
|
|||||||
Reference in New Issue
Block a user