[vue-i18n] Value of key '图标管理' is not a string!
今天项目运行时报了很多vue-i18n.esm.js?a925:14 [vue-i18n] Value of key ‘图标管理’ is not a string!的错:解决方案:在项目的index.js文件中修改配置,让在创建 i18n 示例的时候加上参数去掉这些 warningconst i18n = new VueI18n({locale: lang, // set local...
·
今天项目运行时报了很多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
});
问题解决,运行结果如下:
更多推荐
已为社区贡献3条内容
所有评论(0)