update pay function
This commit is contained in:
@@ -72,6 +72,17 @@ const KLineChartModal: React.FC<KLineChartModalProps> = ({
|
|||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
const [data, setData] = useState<KLineDataPoint[]>([]);
|
const [data, setData] = useState<KLineDataPoint[]>([]);
|
||||||
|
|
||||||
|
// 调试日志
|
||||||
|
console.log('[KLineChartModal] 渲染状态:', {
|
||||||
|
isOpen,
|
||||||
|
stock,
|
||||||
|
eventTime,
|
||||||
|
zIndex,
|
||||||
|
dataLength: data.length,
|
||||||
|
loading,
|
||||||
|
error
|
||||||
|
});
|
||||||
|
|
||||||
// 加载K线数据
|
// 加载K线数据
|
||||||
const loadData = async () => {
|
const loadData = async () => {
|
||||||
if (!stock?.stock_code) return;
|
if (!stock?.stock_code) return;
|
||||||
@@ -450,14 +461,17 @@ const KLineChartModal: React.FC<KLineChartModalProps> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={isOpen} onClose={onClose} size={size}>
|
<Modal isOpen={isOpen} onClose={onClose} size={size}>
|
||||||
<ModalOverlay bg="blackAlpha.700" zIndex={zIndex} />
|
<ModalOverlay
|
||||||
|
bg="blackAlpha.700"
|
||||||
|
sx={zIndex ? { zIndex: zIndex } : undefined}
|
||||||
|
/>
|
||||||
<ModalContent
|
<ModalContent
|
||||||
maxW="90vw"
|
maxW="90vw"
|
||||||
maxH="85vh"
|
maxH="85vh"
|
||||||
bg="#1a1a1a"
|
bg="#1a1a1a"
|
||||||
borderColor="#404040"
|
borderColor="#404040"
|
||||||
borderWidth="1px"
|
borderWidth="1px"
|
||||||
zIndex={zIndex}
|
sx={zIndex ? { zIndex: zIndex + 1 } : undefined}
|
||||||
>
|
>
|
||||||
<ModalHeader pb={3} borderBottomWidth="1px" borderColor="#404040">
|
<ModalHeader pb={3} borderBottomWidth="1px" borderColor="#404040">
|
||||||
<VStack align="flex-start" spacing={1}>
|
<VStack align="flex-start" spacing={1}>
|
||||||
|
|||||||
Reference in New Issue
Block a user