|
@@ -168,11 +168,12 @@ service.interceptors.response.use((response) => {
|
|
|
|
|
|
// 防重复提交时间戳
|
|
|
const mainInterfaceList = store.getters.mainInterfaceList
|
|
|
- const hasPath = mainInterfaceList.find(item => response.config.url.indexOf(item)>=0)
|
|
|
- if(hasPath){
|
|
|
- store.commit('SET_noRestTimeStr', response.data.data.updateDate)
|
|
|
+ if(mainInterfaceList){
|
|
|
+ const hasPath = mainInterfaceList.find(item => response.config.url.indexOf(item)>=0)
|
|
|
+ if(hasPath){
|
|
|
+ store.commit('SET_noRestTimeStr', response.data.data.updateDate)
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
return response.data
|
|
|
}, err)
|
|
|
|