|
@@ -1329,7 +1329,7 @@ export function getSldStatYTitle() {
|
|
* */
|
|
* */
|
|
export function sldComRequest(method, url, params, data_type = '') {
|
|
export function sldComRequest(method, url, params, data_type = '') {
|
|
const state = window.g_app._store.getState();
|
|
const state = window.g_app._store.getState();
|
|
- const currentSite = state.global.currentSite;
|
|
|
|
|
|
+ const currentSite = state.global.currentSite || localStorage.getItem('currentSite');
|
|
const currentPath = state.routing.location.pathname;
|
|
const currentPath = state.routing.location.pathname;
|
|
if (!currentPath.includes('/user/login')) {
|
|
if (!currentPath.includes('/user/login')) {
|
|
params = Object.assign({}, params ?? {}, { webSite: currentSite })
|
|
params = Object.assign({}, params ?? {}, { webSite: currentSite })
|