update
This commit is contained in:
parent
6bcf31b085
commit
e049aaaf45
@ -51,12 +51,12 @@ watch(
|
||||
handleGetMapRealData()
|
||||
},
|
||||
{ deep: true }
|
||||
);
|
||||
);
|
||||
|
||||
// 拿到实时数据
|
||||
const handleGetMapRealData = async () => {
|
||||
const req: any = {
|
||||
serverPartId: props.currentService?.SERVERPART_ID || ""
|
||||
serverPartId: props.currentService?.SERVERPART_ID || ""
|
||||
}
|
||||
|
||||
let CoreBusinessData = sessionStorage.getItem('CoreBusinessData')
|
||||
@ -64,7 +64,7 @@ const handleGetMapRealData = async () => {
|
||||
if (CoreBusinessData) {
|
||||
data = JSON.parse(CoreBusinessData)
|
||||
} else {
|
||||
data = await handleGetRealData(req)
|
||||
data = await handleGetRealData(req)
|
||||
sessionStorage.setItem("CoreBusinessData", JSON.stringify(data))
|
||||
}
|
||||
|
||||
|
||||
@ -41,7 +41,11 @@ const errorHandler = (error: any): any => {
|
||||
|
||||
// 创建 axios 实例
|
||||
const instance = axios.create({
|
||||
baseURL: 'https://admin.es.eshangtech.com/platform/', // 默认请求前缀
|
||||
baseURL: 'https://java.es.eshangtech.com:443/', // 默认请求前缀
|
||||
// baseURL: 'http://111.229.213.193:18071/', // 默认请求前缀
|
||||
|
||||
|
||||
// baseURL: 'https://admin.es.eshangtech.com/platform/', // 默认请求前缀
|
||||
// baseURL: 'http://10.104.1.161:8070/platform/', // 默认请求前缀
|
||||
timeout: 60000, // 请求超时时间
|
||||
headers: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user