Commit 7139c4a0 by shenpeng1

dev: 更新接口和保存参数

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