|
@@ -2,12 +2,14 @@ import Vue from 'vue';
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
|
|
|
|
const getSiteId = () => {
|
|
const getSiteId = () => {
|
|
- let host = `${window.location.hostname}`; //`999991.smart.jilinjobswx.cn`
|
|
|
|
|
|
+ let host = `${window.location.hostname}`; //`999991.smart.jilinjobswx.cn ${window.location.hostname}`
|
|
let schId;
|
|
let schId;
|
|
|
|
+ host = host.replace('http://', '');
|
|
let arr = host.split('.');
|
|
let arr = host.split('.');
|
|
if (arr.length > 0) {
|
|
if (arr.length > 0) {
|
|
schId = arr[0];
|
|
schId = arr[0];
|
|
- `${schId}`.includes('localhost') || `${schId}`.includes('127.0.0.1') ? (schId = '99991') : '';
|
|
|
|
|
|
+ if (schId === 'smart') schId = 'master';
|
|
|
|
+ else `${schId}`.includes('localhost') || `${schId}`.includes('127.0.0.1') ? (schId = '99991') : '';
|
|
sessionStorage.setItem('schId', `${schId}`.includes('localhost') || `${schId}`.includes('127.0.0.1') ? '99991' : schId);
|
|
sessionStorage.setItem('schId', `${schId}`.includes('localhost') || `${schId}`.includes('127.0.0.1') ? '99991' : schId);
|
|
}
|
|
}
|
|
return schId;
|
|
return schId;
|