mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 02:53:45 +08:00
chore: update
This commit is contained in:
parent
fb2d138cbf
commit
978acfa471
@ -66,7 +66,7 @@ const ProfilePage = () => {
|
||||
coordinateGetter: sortableKeyboardCoordinates,
|
||||
})
|
||||
);
|
||||
const { stateCurrent } = location.state || {};
|
||||
const { current } = location.state || {};
|
||||
|
||||
useEffect(() => {
|
||||
const unlisten = addListener("tauri://file-drop", async (event) => {
|
||||
@ -184,11 +184,12 @@ const ProfilePage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
if (stateCurrent && stateCurrent !== profiles.current) {
|
||||
await activateProfile(stateCurrent, false);
|
||||
if (current) {
|
||||
mutateProfiles();
|
||||
await activateProfile(current, false);
|
||||
}
|
||||
})();
|
||||
}, stateCurrent);
|
||||
}, current);
|
||||
|
||||
const onEnhance = useLockFn(async (notifySuccess: boolean) => {
|
||||
setActivatings(currentActivatings());
|
||||
|
Loading…
x
Reference in New Issue
Block a user