mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:53:44 +08:00
feat: prevent click same
This commit is contained in:
parent
cba176cdc9
commit
3c908963ae
@ -77,6 +77,7 @@ const ProfilePage = () => {
|
|||||||
|
|
||||||
const lockRef = useRef(false);
|
const lockRef = useRef(false);
|
||||||
const onProfileChange = (index: number) => {
|
const onProfileChange = (index: number) => {
|
||||||
|
if (index === profiles.current || lockRef.current) return;
|
||||||
if (lockRef.current) return;
|
if (lockRef.current) return;
|
||||||
lockRef.current = true;
|
lockRef.current = true;
|
||||||
putProfiles(index)
|
putProfiles(index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user