From ddb90c3d908811a7eb0eff82f03793d29fd1df95 Mon Sep 17 00:00:00 2001 From: Guarp Date: Sat, 8 Mar 2025 16:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8D=9A=E5=AE=A2=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Editor.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Editor.vue b/src/pages/Editor.vue index 1bab9d0..ded30ce 100644 --- a/src/pages/Editor.vue +++ b/src/pages/Editor.vue @@ -264,10 +264,10 @@ const submitBlog = async () => { swal.window('success', '提交成功',`博客id: ${response.blogId || '未找到blogId字段'}`,'ok','好的'); return; } - swal.tip('error', '提交失败, code字段不为0') + swal.window('error', '错误', `code${ ('为' + response.code) || '未返回'}\n返回信息: ${response.message}`, 'ok','好的'); }).catch((e) => { - swal.window('error', '错误', `${e.message}\n${e.code}`, 'ok','ok') - swal.tip('error', `${e.message}\n${e.code}`) + + swal.tip('error', `${e.message}\n${e.code}`); }); api.defaults.baseURL = tempURL;