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

update

上级 c9d92888
...@@ -85,7 +85,9 @@ export const uploadImg = (file) => request({ ...@@ -85,7 +85,9 @@ export const uploadImg = (file) => request({
headers: { "Content-Type": "multipart/form-data" } headers: { "Content-Type": "multipart/form-data" }
}); });
export const addObj = (data) => request({ export const addObj = (data) => {
return new Promise((resolve, reject) => {
request({
url: url + '/bladevisuals/save', url: url + '/bladevisuals/save',
method: 'post', method: 'post',
data: { data: {
...@@ -108,7 +110,13 @@ export const addObj = (data) => request({ ...@@ -108,7 +110,13 @@ export const addObj = (data) => request({
component: '[]' component: '[]'
} }
} }
}); }).then((response) => {
resolve(response);
}).catch((response) => {
reject(response);
});
})
}
export const updateComponent = (data) => request({ export const updateComponent = (data) => request({
url: url + '/visual/update', url: url + '/visual/update',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册