Browse Source

取消引用i18n 使用引用项目的i18n 需vue.config 配置config.plugin('provide').use(webpack.ProvidePlugin, [{
'window.i18n': resolve('./lang/index.js')
}])

lincl 1 year ago
parent
commit
c0542f0358
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/validateForm.js

+ 1 - 1
src/utils/validateForm.js

@ -1,4 +1,4 @@
import i18n from '../lang'
// import i18n from '../lang'
const $t = function() {
  return i18n.t.apply(i18n, arguments)