mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:33:45 +08:00
fix: update test url
This commit is contained in:
parent
32edc0f1fe
commit
22bcc2e438
@ -28,7 +28,7 @@ interface Props {
|
||||
onDelete: (uid: string) => void;
|
||||
}
|
||||
|
||||
let eventListener: UnlistenFn | null = null;
|
||||
let eventListener: UnlistenFn = () => {};
|
||||
|
||||
export const TestItem = (props: Props) => {
|
||||
const { itemData, onEdit, onDelete: onDeleteItem } = props;
|
||||
@ -90,9 +90,7 @@ export const TestItem = (props: Props) => {
|
||||
];
|
||||
|
||||
const listenTsetEvent = async () => {
|
||||
if (eventListener !== null) {
|
||||
eventListener();
|
||||
}
|
||||
eventListener = await listen("verge://test-all", () => {
|
||||
onDelay();
|
||||
});
|
||||
@ -100,7 +98,7 @@ export const TestItem = (props: Props) => {
|
||||
|
||||
useEffect(() => {
|
||||
listenTsetEvent();
|
||||
}, []);
|
||||
}, [url]);
|
||||
|
||||
return (
|
||||
<Box
|
||||
|
Loading…
x
Reference in New Issue
Block a user