支持mode=deal参数
This commit is contained in:
parent
1e68553ff6
commit
17c4bb2788
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue