bases/HostBoot.js
@@ -14,6 +14,7 @@ */ constructor() { this._data = { mockOff: Tools.getUrlParam('mock') === 'off', // 可用主机列表 hostList: { ...project.host.hosts, @@ -52,7 +53,7 @@ }; } // 如果有匹配服务器,使用指定的服务器地址 if (typeof this._data.hostList[server] !== 'undefined') { else if (typeof this._data.hostList[server] !== 'undefined') { this._data.activeHost[typeName] = { name: server, host: this._data.hostList[server], @@ -193,6 +194,9 @@ */ isOnMock() { if (this.isDevMod()) { if (this._data.mockOff) { return false; } return this.getHostName() === 'lc'; } else { return false;