Open aniude opened 4 days ago
eg . test.js
import { t } from './languages' const attr = {'name': t('名字')}; // 不会自动转换英文 const attr = {'name': () => t('名字')}; // 写成这样就可以
在 vue 文件使用没有这个问题.
另外 vue 组件 的 props 使用 default 参数好像也有这个问题.
eg . test.js
在 vue 文件使用没有这个问题.