分类首页样式调整,需求发布接口对接
This commit is contained in:
@@ -126,10 +126,10 @@ const service = {
|
||||
url: serverHost + url,
|
||||
header: header,
|
||||
success: res => {
|
||||
if (!res.data.flag) {
|
||||
isOutTime(res)
|
||||
reject(res)
|
||||
}
|
||||
// if (!res.data.flag) {
|
||||
// isOutTime(res)
|
||||
// reject(res)
|
||||
// }
|
||||
resolve(res)
|
||||
},
|
||||
data: data,
|
||||
@@ -205,7 +205,7 @@ const toast = {
|
||||
}
|
||||
}
|
||||
const apiService = {
|
||||
uploadImgUrl: serverHost,
|
||||
uploadImgUrl: serverHost + `/upload/image/`,
|
||||
imgUrl: serverHost,
|
||||
// login: data => {
|
||||
// data = Object.assign(data || {}, {})
|
||||
@@ -384,7 +384,10 @@ const apiService = {
|
||||
},
|
||||
// 提交
|
||||
submitIdeasAndNeeds(data) {
|
||||
const url = `/require/release/`
|
||||
let url = `/require/release/`
|
||||
if (data.id) {
|
||||
url = `/require/update/`
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
resolve(service.putWithFormData(url, data))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user