diff --git a/packages/editor-ui/src/views/SettingsSso.vue b/packages/editor-ui/src/views/SettingsSso.vue index ade3504554..252d3f8683 100644 --- a/packages/editor-ui/src/views/SettingsSso.vue +++ b/packages/editor-ui/src/views/SettingsSso.vue @@ -4,7 +4,7 @@ import { Notification } from 'element-ui'; import { useSSOStore } from '@/stores/sso'; import { useUsageStore } from '@/stores/usage'; import { useUIStore } from '@/stores/ui'; -import { BaseTextKey, i18n as locale } from '@/plugins/i18n'; +import { i18n as locale } from '@/plugins/i18n'; import CopyInput from '@/components/CopyInput.vue'; const ssoStore = useSSOStore(); @@ -56,16 +56,7 @@ const onTest = async () => { }; const goToUpgrade = () => { - const linkUrlTranslationKey = uiStore.contextBasedTranslationKeys.upgradeLinkUrl as BaseTextKey; - let linkUrl = locale.baseText(linkUrlTranslationKey); - - if (linkUrlTranslationKey.endsWith('.upgradeLinkUrl')) { - linkUrl = `${usageStore.viewPlansUrl}&source=sso`; - } else if (linkUrlTranslationKey.endsWith('.desktop')) { - linkUrl = `${linkUrl}&utm_campaign=upgrade-sso`; - } - - window.open(linkUrl, '_blank'); + uiStore.goToUpgrade('sso', 'upgrade-sso`'); }; onBeforeMount(async () => {