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