From 84ba8ceb0686d1d7725fd2f3be655eed8ec7c4b2 Mon Sep 17 00:00:00 2001 From: Wonder Date: Tue, 7 Oct 2025 22:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=93=9DDocs:=20=E5=AE=8C=E6=88=90=20T03?= =?UTF-8?q?/=E9=9B=86=E6=88=90=20Axios=20=E5=AE=9E=E7=8E=B0=20AJAX=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=82=AE=E4=BB=B6=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- frontend/src/components/EmailSender.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a379999..474e24f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ |--------------|------------------------------------------------------------------------------| | ✅T01 | 搭建 Vue 3 前端项目(使用 Vite) | | ✅T02 | 开发邮件发送页面(含表单和附件上传功能) | -| T03 | 集成 Axios 实现 AJAX 提交邮件数据 | +| ✅T03 | 集成 Axios 实现 AJAX 提交邮件数据 | | T04 | 实现邮件发送状态提示(成功/失败) | | T05 | 创建 Spring Boot 后端项目,集成 Spring Mail 发送邮件功能 | | T06 | 开发 `/api/email/send` 接口,支持附件上传 | diff --git a/frontend/src/components/EmailSender.vue b/frontend/src/components/EmailSender.vue index bacbbd2..2cab372 100644 --- a/frontend/src/components/EmailSender.vue +++ b/frontend/src/components/EmailSender.vue @@ -168,7 +168,7 @@ const submitForm = async () => { message.value = '' // 发送请求 - const response = await axios.post('/api/email/send', formData, { + const response = await axios.post('http:localhost:8080/api/email/send', formData, { headers: { 'Content-Type': 'multipart/form-data' }