Commit 7139c4a0 by shenpeng1

dev: 更新接口和保存参数

1 parent 9c5d9fb5
......@@ -15,7 +15,7 @@ export function getList(params) {
* @param {*} params
*/
export function updatePoster(data) {
return request({ url: service + '/update', method: 'put', data })
return request({ url: serviceCategory + '/update', method: 'put', data })
}
/**
......
......@@ -267,10 +267,16 @@ export default {
console.log('save', posterForm.id)
if (posterForm.id) {
// 编辑海报
const res = await updatePoster(Object.assign({}, {}, this.posterForm))
const res = await updatePoster(Object.assign({}, {
backgroundImgPath: '',
posterSubassemblyList: []
}, this.posterForm))
} else {
// 新建海报
const res = await addPoster(Object.assign({}, {}, this.posterForm))
const res = await addPoster(Object.assign({}, {
backgroundImgPath: '',
posterSubassemblyList: []
}, this.posterForm))
}
// let res = {};
// var list =[];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!