fix: restore wechat settings compatibility after rebase

This commit is contained in:
IanShaw027
2026-04-21 23:26:45 +08:00
parent b22d00e541
commit 40f7e832b4
4 changed files with 58 additions and 14 deletions

View File

@@ -43,9 +43,13 @@ const props = withDefaults(defineProps<{
const appStore = useAppStore()
const route = useRoute()
const { t } = useI18n()
const { t, locale } = useI18n()
const providerName = computed(() => t('auth.wechatProviderName'))
function localizeWeChatHint(zh: string, en: string): string {
return locale.value.startsWith('zh') ? zh : en
}
const resolvedStart = computed(() => resolveWeChatOAuthStart(appStore.cachedPublicSettings))
const buttonDisabled = computed(() => props.disabled || resolvedStart.value.mode === null)
const disabledHint = computed(() => {