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

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

parent cc1b692b
...@@ -3,10 +3,7 @@ import request from '@/utils/request' ...@@ -3,10 +3,7 @@ import request from '@/utils/request'
export function clearInfo(data) { export function clearInfo(data) {
return request({ return request({
url: '/user/info/clean', url: '/user/info/clean',
method: 'post', method: 'put',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
params: data params: data
}) })
} }
...@@ -14,7 +11,7 @@ export function clearInfo(data) { ...@@ -14,7 +11,7 @@ export function clearInfo(data) {
export function closeOrder(data) { export function closeOrder(data) {
return request({ return request({
url: '/user/order/clean', url: '/user/order/clean',
method: 'post', method: 'put',
params: data params: data
}) })
} }
......
...@@ -55,7 +55,7 @@ service.interceptors.response.use( ...@@ -55,7 +55,7 @@ service.interceptors.response.use(
duration: 2000 duration: 2000
}) })
} }
// return Promise.reject('error') return Promise.reject('error')
} else { } else {
return response.data return response.data
} }
......
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
this.$notify({ this.$notify({
title: '成功', title: '成功',
type: 'success', type: 'success',
duration: 1000 duration: 2000
}) })
}) })
}, },
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
this.$notify({ this.$notify({
title: '成功', title: '成功',
type: 'success', type: 'success',
duration: 1000 duration: 2000
}) })
}) })
}, },
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
this.$notify({ this.$notify({
title: '成功', title: '成功',
type: 'success', 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