perf: date and warning
This commit is contained in:
@@ -120,7 +120,7 @@ const TokenUsage = ({ appId }: { appId: string }) => {
|
||||
show: false,
|
||||
left: 5,
|
||||
right: 5,
|
||||
top: 5,
|
||||
top: 0,
|
||||
bottom: 5
|
||||
},
|
||||
tooltip: {
|
||||
@@ -173,6 +173,10 @@ const TokenUsage = ({ appId }: { appId: string }) => {
|
||||
if (!Dom.current || myChart?.current?.getOption()) return;
|
||||
myChart.current = echarts.init(Dom.current);
|
||||
myChart.current && myChart.current.setOption(option);
|
||||
|
||||
setTimeout(() => {
|
||||
myChart.current?.resize();
|
||||
}, 500);
|
||||
}, []);
|
||||
|
||||
// data changed, update
|
||||
@@ -188,7 +192,7 @@ const TokenUsage = ({ appId }: { appId: string }) => {
|
||||
}, [screenWidth]);
|
||||
|
||||
return (
|
||||
<Box ref={Dom} w={'100%'} h={'100%'} position={'relative'}>
|
||||
<Box ref={Dom} w={'100%'} flex={'1 0 0'} h={'100%'} position={'relative'}>
|
||||
<Loading fixed={false} />
|
||||
</Box>
|
||||
);
|
||||
|
||||
@@ -146,12 +146,12 @@ const InfoModal = ({
|
||||
></Input>
|
||||
</FormControl>
|
||||
</Flex>
|
||||
<Box mt={6} mb={1}>
|
||||
<Box mt={7} mb={1}>
|
||||
应用介绍
|
||||
</Box>
|
||||
<Box color={'myGray.500'} mb={2} fontSize={'sm'}>
|
||||
{/* <Box color={'myGray.500'} mb={2} fontSize={'sm'}>
|
||||
该介绍主要用于记忆和在应用市场展示
|
||||
</Box>
|
||||
</Box> */}
|
||||
<Textarea
|
||||
rows={4}
|
||||
maxLength={500}
|
||||
|
||||
@@ -132,14 +132,12 @@ const Settings = ({ appId }: { appId: string }) => {
|
||||
</Flex>
|
||||
</Box>
|
||||
</Box>
|
||||
<Box>
|
||||
<Flex flexDirection={'column'}>
|
||||
<Box mb={2} fontSize={['md', 'xl']}>
|
||||
近 14 日消费
|
||||
</Box>
|
||||
<Box h={'150px'} w={'100%'}>
|
||||
<TotalUsage appId={appId} />
|
||||
</Box>
|
||||
</Box>
|
||||
<TotalUsage appId={appId} />
|
||||
</Flex>
|
||||
</Grid>
|
||||
</Box>
|
||||
<Box flex={'1 0 0'} position={'relative'}>
|
||||
|
||||
Reference in New Issue
Block a user