mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-11 12:49:30 +08:00
fix: 修复首页文章排序问题、修复文章详情广告问题
This commit is contained in:
@@ -31,6 +31,7 @@ http.setConfig((config) => {
|
||||
}
|
||||
return config
|
||||
})
|
||||
|
||||
setInterceptors(http)
|
||||
|
||||
export {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
/**
|
||||
* 封装各种请求方式
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
http
|
||||
} from '@/common/http/index.js'
|
||||
@@ -11,7 +9,7 @@ export default {
|
||||
Get: (url, params, config = {}) => {
|
||||
return http.get(url, {
|
||||
params,
|
||||
...config
|
||||
...config
|
||||
})
|
||||
},
|
||||
Post: (url, data, config = {}) => {
|
||||
@@ -26,4 +24,4 @@ export default {
|
||||
Delete: (url, data, config = {}) => {
|
||||
return http.delete(url, data, config)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user