Ver código fonte

i18n使用注释

lrf 1 ano atrás
pai
commit
5434de424f
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/lang/index.js

+ 2 - 0
src/lang/index.js

@@ -1,5 +1,7 @@
 import { createI18n } from 'vue-i18n'
 // 本地语言包
+// tm('key') 取ref对象 再用toRaw转换成普通对象
+// t('key.target')取值
 import enLocale from './package/en'
 import zhCnLocale from './package/zh-cn'