diff --git a/src/pages/Editor.vue b/src/pages/Editor.vue index 4b1ee46..fae9a74 100644 --- a/src/pages/Editor.vue +++ b/src/pages/Editor.vue @@ -241,7 +241,7 @@ const submitBlog = async () => { swal.window('success', `提交成功, 博客id${response.blogId || '未找到blogId字段'}`); return; } - swal.tip('error', '提交失败, code字段不为0') + swal.window('error', '提交失败', `code字段为${response.code}; 错误信息: ${response.message}`, 'ok', '好的'); }).catch((e) => { swal.tip('error', `错误${e.message}`) });