更改部分接口传参方式
This commit is contained in:
@@ -5,6 +5,9 @@ export async function init() {
|
||||
//热搜词
|
||||
http.request({
|
||||
url: 'common/type/249',
|
||||
data: {
|
||||
type: 249
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('moreSearch', res.data.value)
|
||||
@@ -18,6 +21,9 @@ export async function init() {
|
||||
export const commonType = (num) => {
|
||||
return http.request({
|
||||
url: `/common/type/${num}`,
|
||||
data:{
|
||||
type: num
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user