fix: 搜索框默认值改为空,避免下拉弹窗自动打开

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-10 10:35:01 +08:00
parent 0de4a1f7af
commit c8d704363d

View File

@@ -33,8 +33,8 @@ export const useCompanyStock = (options = {}) => {
searchParams.get(paramName) || defaultCode
);
// 输入框状态(未确认的输入
const [inputCode, setInputCode] = useState(stockCode);
// 输入框状态(默认为空,不显示默认股票代码
const [inputCode, setInputCode] = useState('');
/**
* 监听 URL 参数变化,同步到本地状态