支持mode=deal参数

This commit is contained in:
甲辰生产 2026-04-11 23:44:29 +08:00
parent 1e68553ff6
commit 17c4bb2788
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export default function Add() {
// URL
const params = new URLSearchParams(window.location.hash.split('?')[1] || '')
const modeParam = params.get('mode')
const defaultTab = modeParam === 'manual' ? 'manual' : 'ai'
const defaultTab = modeParam === 'manual' ? 'manual' : modeParam === 'deal' ? 'deal' : 'ai'
const [activeTab, setActiveTab] = useState(defaultTab) // ai, manual, deal
const [form, setForm] = useState(getDefaultForm())