update pay promo
This commit is contained in:
@@ -60,8 +60,8 @@ const FlexScreen: React.FC = () => {
|
||||
const [searchResults, setSearchResults] = useState<SearchResultItem[]>([]);
|
||||
const [isSearching, setIsSearching] = useState(false);
|
||||
const [showResults, setShowResults] = useState(false);
|
||||
// 面板状态(默认收起)
|
||||
const [isCollapsed, setIsCollapsed] = useState(true);
|
||||
// 面板状态(默认展开)
|
||||
const [isCollapsed, setIsCollapsed] = useState(false);
|
||||
|
||||
// 获取订阅的证券代码列表
|
||||
const subscribedCodes = useMemo(() => {
|
||||
@@ -155,7 +155,8 @@ const FlexScreen: React.FC = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
setWatchlist(prev => [...prev, { code, name, isIndex }]);
|
||||
// 新加的股票置于第一个位置
|
||||
setWatchlist(prev => [{ code, name, isIndex }, ...prev]);
|
||||
|
||||
toast({
|
||||
title: `已添加 ${name}${isIndex ? '(指数)' : ''}`,
|
||||
|
||||
Reference in New Issue
Block a user