|
|
@ -7,7 +7,13 @@ import timeUtil from './timeUtil';
|
|
|
|
const DataUtil = new dataUtil();
|
|
|
|
const DataUtil = new dataUtil();
|
|
|
|
const DateUtil = new timeUtil();
|
|
|
|
const DateUtil = new timeUtil();
|
|
|
|
const LocalStorageUtil = new localStorageUtil();
|
|
|
|
const LocalStorageUtil = new localStorageUtil();
|
|
|
|
export { LocalStorageUtil, request, DataUtil, DateUtil };
|
|
|
|
const getLoginId = () => {
|
|
|
|
|
|
|
|
let userInfo: any = LocalStorageUtil.get("user_info")
|
|
|
|
|
|
|
|
return userInfo && userInfo.loginId ? userInfo.loginId : null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export { LocalStorageUtil, request, DataUtil, DateUtil, getLoginId };
|
|
|
|
|
|
|
|
|
|
|
|
export const qiankunJump = (url: string, name = '页面名称', params = null) => {
|
|
|
|
export const qiankunJump = (url: string, name = '页面名称', params = null) => {
|
|
|
|
window.__POWERED_BY_QIANKUN__ ? history.pushState(params, name, url) : umiHistory.push(url)
|
|
|
|
window.__POWERED_BY_QIANKUN__ ? history.pushState(params, name, url) : umiHistory.push(url)
|
|
|
|