摘要: import { useI18n } from 'vue-i18n'; const { t } = useI18n(); 会在非组件情况下报错: 此时我们需要将上述导入方式改为: import i18n from '@/lang/i18n';//@/lang/i18n为语言包位置 const { t 阅读全文
posted @ 2023-07-10 11:50 大萨特 阅读(2482) 评论(0) 推荐(0)