This commit is contained in:
parent
eaf7853193
commit
44b7c2420e
|
|
@ -2,17 +2,17 @@ import { post,get,put } from '../index'
|
||||||
|
|
||||||
// 获取装备列表
|
// 获取装备列表
|
||||||
export const getList = (params = {}) => {
|
export const getList = (params = {}) => {
|
||||||
return post('/dev/list',params)
|
return post('/zlpt-equip/dev/list',params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取装备详情
|
//获取装备详情
|
||||||
export const getDetail = (id = '') => {
|
export const getDetail = (id = '') => {
|
||||||
return get(`/dev/${id}`)
|
return get(`/zlpt-equip/dev/${id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取 推荐装备列表
|
//获取 推荐装备列表
|
||||||
export const getHotList = (params) => {
|
export const getHotList = (params) => {
|
||||||
return get('/dev/hotList',params)
|
return get('/zlpt-equip/dev/hotList',params)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const equipCollect = (params = {}) => {
|
export const equipCollect = (params = {}) => {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,11 @@ service.interceptors.response.use(
|
||||||
} else if (data.code == '403') {
|
} else if (data.code == '403') {
|
||||||
ElMessage.error('请重新登录')
|
ElMessage.error('请重新登录')
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
} else {
|
} else if( data.code == '401' ){
|
||||||
|
ElMessage.error(data.msg)
|
||||||
|
router.push('/login')
|
||||||
|
}
|
||||||
|
else {
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue