diff --git a/src/components/Location.vue b/src/components/Location.vue index 8982d02c..dd2c8d9a 100644 --- a/src/components/Location.vue +++ b/src/components/Location.vue @@ -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'; @@ -41,6 +43,7 @@ const setProxy = ( } else { setGlobalProxy({ country, countryCode, city, hostname, ipv4_address, port }); } + updateTabsProxyBadges(); }; const clickServer = (