|
@@ -47,9 +47,6 @@ const setDict = (type, val) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (type === 'positionSecondData') {
|
|
|
- val.data = getSecondNodes(val.data)
|
|
|
- }
|
|
|
// 一小时过期
|
|
|
const currentTime = new Date()
|
|
|
currentTime.setTime(currentTime.getTime() + 3600 * 1000)
|
|
@@ -88,6 +85,9 @@ export const getDict = (type, params, apiType = 'dict') => {
|
|
|
}
|
|
|
apiFn[apiType](query).then(data => {
|
|
|
// setDict(type, data, Date.now())
|
|
|
+ if (type === 'positionSecondData') {
|
|
|
+ data.data = getSecondNodes(data.data)
|
|
|
+ }
|
|
|
setDict(type, data)
|
|
|
resolve({ data })
|
|
|
})
|