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' }