提交 56f74fe7 编写于 作者: llz's avatar llz

update

上级 c9d92888
......@@ -85,30 +85,38 @@ export const uploadImg = (file) => request({
headers: { "Content-Type": "multipart/form-data" }
});
export const addObj = (data) => request({
url: url + '/bladevisuals/save',
method: 'post',
data: {
password: data.password,
category: data.category,
status: data.status,
title: data.title,
config: {
detail: JSON.stringify({
name: data.title,
width: data.width,
height: data.height,
scale: 1,
backgroundImage: '/img/bg/bg1.png',
url: '',
mark: {},
gradeShow: false,
gradeLen: 30,
}),
component: '[]'
export const addObj = (data) => {
return new Promise((resolve, reject) => {
request({
url: url + '/bladevisuals/save',
method: 'post',
data: {
password: data.password,
category: data.category,
status: data.status,
title: data.title,
config: {
detail: JSON.stringify({
name: data.title,
width: data.width,
height: data.height,
scale: 1,
backgroundImage: '/img/bg/bg1.png',
url: '',
mark: {},
gradeShow: false,
gradeLen: 30,
}),
component: '[]'
}
}
}
});
}).then((response) => {
resolve(response);
}).catch((response) => {
reject(response);
});
})
}
export const updateComponent = (data) => request({
url: url + '/visual/update',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册