📝Docs: 完成 T03/集成 Axios 实现 AJAX 提交邮件数据
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|--------------|------------------------------------------------------------------------------|
|
|--------------|------------------------------------------------------------------------------|
|
||||||
| ✅T01 | 搭建 Vue 3 前端项目(使用 Vite) |
|
| ✅T01 | 搭建 Vue 3 前端项目(使用 Vite) |
|
||||||
| ✅T02 | 开发邮件发送页面(含表单和附件上传功能) |
|
| ✅T02 | 开发邮件发送页面(含表单和附件上传功能) |
|
||||||
| T03 | 集成 Axios 实现 AJAX 提交邮件数据 |
|
| ✅T03 | 集成 Axios 实现 AJAX 提交邮件数据 |
|
||||||
| T04 | 实现邮件发送状态提示(成功/失败) |
|
| T04 | 实现邮件发送状态提示(成功/失败) |
|
||||||
| T05 | 创建 Spring Boot 后端项目,集成 Spring Mail 发送邮件功能 |
|
| T05 | 创建 Spring Boot 后端项目,集成 Spring Mail 发送邮件功能 |
|
||||||
| T06 | 开发 `/api/email/send` 接口,支持附件上传 |
|
| T06 | 开发 `/api/email/send` 接口,支持附件上传 |
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ const submitForm = async () => {
|
|||||||
message.value = ''
|
message.value = ''
|
||||||
|
|
||||||
// 发送请求
|
// 发送请求
|
||||||
const response = await axios.post('/api/email/send', formData, {
|
const response = await axios.post('http:localhost:8080/api/email/send', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data'
|
'Content-Type': 'multipart/form-data'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user