Explorar o código

i18n使用注释

lrf hai 1 ano
pai
achega
5434de424f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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'