From 436ebe3166301a04dd263108f24b85eea3c957cf Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Fri, 28 Feb 2025 10:08:17 +0800 Subject: [PATCH] 12 --- app/components/x-van-select/index.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/x-van-select/index.vue b/app/components/x-van-select/index.vue index c4cd32c..f147d1f 100644 --- a/app/components/x-van-select/index.vue +++ b/app/components/x-van-select/index.vue @@ -2,8 +2,6 @@ import { ref } from 'vue' import { useI18n } from 'vue-i18n' -const { t } = useI18n() - const props = defineProps({ modelValue: { type: [Number, String] @@ -25,7 +23,7 @@ const props = defineProps({ placeholder: { type: String, - default: () => t('components.form.pleaseSelect') + default: () => useI18n().t('components.form.pleaseSelect') }, disabled: {