chore: update

This commit is contained in:
huzibaca 2024-10-29 10:13:53 +08:00
parent 2bb3498602
commit 202fb19ab1
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -52,15 +52,19 @@ const LogPage = () => {
)} )}
</IconButton> </IconButton>
{enableLog === true && (
<Button <Button
size="small" size="small"
variant="contained" variant="contained"
// useSWRSubscription adds a prefix "$sub$" to the cache key // useSWRSubscription adds a prefix "$sub$" to the cache key
// https://github.com/vercel/swr/blob/1585a3e37d90ad0df8097b099db38f1afb43c95d/src/subscription/index.ts#L37 // https://github.com/vercel/swr/blob/1585a3e37d90ad0df8097b099db38f1afb43c95d/src/subscription/index.ts#L37
onClick={() => mutate("$sub$getClashLog", [])} onClick={() => {
mutate("$sub$getClashLog", []);
}}
> >
{t("Clear")} {t("Clear")}
</Button> </Button>
)}
</Box> </Box>
} }
> >
@ -94,7 +98,7 @@ const LogPage = () => {
bgcolor: isDark ? "#282a36" : "#ffffff", bgcolor: isDark ? "#282a36" : "#ffffff",
}} }}
> >
{filterLogs.length > 0 ? ( {filterLogs.length > 0 && enableLog === true ? (
<Virtuoso <Virtuoso
initialTopMostItemIndex={999} initialTopMostItemIndex={999}
data={filterLogs} data={filterLogs}