|
@@ -100,8 +100,7 @@ service.interceptors.response.use(
|
|
|
EndTime,
|
|
|
OperateResult,
|
|
|
Ident: Ident ?? '',
|
|
|
- AppId: '9',
|
|
|
- OperateIP: localStorage.getItem('Ip') ?? null
|
|
|
+ AppId: '9'
|
|
|
}
|
|
|
}
|
|
|
if (islogin) {
|
|
@@ -109,6 +108,7 @@ service.interceptors.response.use(
|
|
|
config.data.OperatorId = (res.returnData.UserId ?? '').toString()
|
|
|
config.data.LogId = (res.returnData.LogId ?? '').toString()
|
|
|
config.data.UserName = (res.returnData.UserName ?? '').toString()
|
|
|
+ config.data.OperateIP = (res.returnData.LogId ?? '').toString()
|
|
|
} else {
|
|
|
const loginData = typeof data === 'string' ? JSON.parse(data) : data
|
|
|
config.data.UserName = loginData.LoginName.toString()
|
|
@@ -117,6 +117,7 @@ service.interceptors.response.use(
|
|
|
config.data.OperatorId = getUserId()
|
|
|
config.data.LogId = getLogId()
|
|
|
config.data.UserName = getUserName()
|
|
|
+ config.data.OperateIP = getLogId()
|
|
|
}
|
|
|
service(config)
|
|
|
}
|