Skip to content

Commit

Permalink
Update the proxy badge immediately after selecting a proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Apr 23, 2024
1 parent f8003e5 commit 6428a6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Location.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
import { computed } from 'vue';
import { NButton, NCollapse, NCollapseItem, NSpace } from 'naive-ui';
import getRandomSocksProxy from '@/helpers/getRandomSocksProxy';
import LocationTabs from '@/components/LocationTabs.vue';
import { updateTabsProxyBadges } from '@/helpers/browserAction';
import getRandomSocksProxy from '@/helpers/getRandomSocksProxy';
import useListProxies from '@/composables/useListProxies';
import useSocksProxy from '@/composables/useSocksProxy';
import useLocations from '@/composables/useLocations';
Expand Down Expand Up @@ -41,6 +43,7 @@ const setProxy = (
} else {
setGlobalProxy({ country, countryCode, city, hostname, ipv4_address, port });
}
updateTabsProxyBadges();
};
const clickServer = (
Expand Down

0 comments on commit 6428a6a

Please sign in to comment.