fix: restore wechat settings compatibility after rebase
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user