feat: implement batch team owner pooling functionality with dedicated upload, processing, logging, and results pages.

This commit is contained in:
2026-01-30 08:57:16 +08:00
parent 9dfa61ac05
commit 6d236419b9
11 changed files with 477 additions and 693 deletions

View File

@@ -4,8 +4,6 @@ import { Card, CardHeader, CardTitle, CardContent, Button, Input } from '../comp
import { useConfig } from '../hooks/useConfig'
import type { MailServiceConfig } from '../types'
const API_BASE = 'http://localhost:8088'
export default function EmailConfig() {
const { config, updateEmailConfig } = useConfig()
@@ -27,7 +25,7 @@ export default function EmailConfig() {
// 保存到后端
try {
const res = await fetch(`${API_BASE}/api/mail/services`, {
const res = await fetch('/api/mail/services', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ services }),
@@ -74,7 +72,7 @@ export default function EmailConfig() {
setTestResults(prev => ({ ...prev, [index]: { success: false, message: '测试中...' } }))
try {
const res = await fetch(`${API_BASE}/api/mail/services/test`, {
const res = await fetch('/api/mail/services/test', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({