测试博客提交修正

This commit is contained in:
Guarp 2025-03-08 13:05:05 +08:00
parent 01b895ca15
commit 3d7553ca61

View File

@ -253,9 +253,9 @@ const submitBlog = async () => {
console.log(Object.fromEntries(formData.entries())); console.log(Object.fromEntries(formData.entries()));
// 3 // 3
axios.post(submitURL, formData).then(response => { const testAxiosAPI = api;
response = response.data; testAxiosAPI.defaults.baseURL = submitURL;
console.log(response) testAxiosAPI.post('', formData).then(response => {
if (response.code === 0) { if (response.code === 0) {
swal.window('success', '提交成功',`博客id: ${response.blogId || '未找到blogId字段'}`,'ok','好的'); swal.window('success', '提交成功',`博客id: ${response.blogId || '未找到blogId字段'}`,'ok','好的');
return; return;