vue-i18n.esm.js?a925:14 [vue-i18n] Value of key '图标管理' is not a string!

 

解决方案:
在项目的index.js文件中修改配置,让在创建 i18n 示例的时候加上参数去掉这些 warning

const i18n = new VueI18n({
  locale: lang, // set locale
  messages, // set locale messages
  silentTranslationWarn: true
});

  

问题解决,运行结果如下:

 

posted @ 2019-03-27 15:03  优前程  阅读(4423)  评论(0编辑  收藏  举报