Commit 393725c0 authored by 智勇's avatar 智勇

修改关闭用户订单接口请求方法

parent cc1b692b
......@@ -3,10 +3,7 @@ import request from '@/utils/request'
export function clearInfo(data) {
return request({
url: '/user/info/clean',
method: 'post',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'put',
params: data
})
}
......@@ -14,7 +11,7 @@ export function clearInfo(data) {
export function closeOrder(data) {
return request({
url: '/user/order/clean',
method: 'post',
method: 'put',
params: data
})
}
......
......@@ -55,7 +55,7 @@ service.interceptors.response.use(
duration: 2000
})
}
// return Promise.reject('error')
return Promise.reject('error')
} else {
return response.data
}
......
......@@ -42,7 +42,7 @@ export default {
this.$notify({
title: '成功',
type: 'success',
duration: 1000
duration: 2000
})
})
},
......@@ -52,7 +52,7 @@ export default {
this.$notify({
title: '成功',
type: 'success',
duration: 1000
duration: 2000
})
})
},
......@@ -62,7 +62,7 @@ export default {
this.$notify({
title: '成功',
type: 'success',
duration: 1000
duration: 2000
})
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment