测试博客提交修正
This commit is contained in:
parent
01b895ca15
commit
3d7553ca61
@ -253,9 +253,9 @@ const submitBlog = async () => {
|
||||
console.log(Object.fromEntries(formData.entries()));
|
||||
// 3️⃣ 发送请求
|
||||
|
||||
axios.post(submitURL, formData).then(response => {
|
||||
response = response.data;
|
||||
console.log(response)
|
||||
const testAxiosAPI = api;
|
||||
testAxiosAPI.defaults.baseURL = submitURL;
|
||||
testAxiosAPI.post('', formData).then(response => {
|
||||
if (response.code === 0) {
|
||||
swal.window('success', '提交成功',`博客id: ${response.blogId || '未找到blogId字段'}`,'ok','好的');
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user