iview-admin框架克隆到本地,添加路由的時候,稍不注意就會遇到以下情況:
Value of key 'xxx' is not string!
Cannot translate the value of keypath 'xxx'. Use the value of keypath as default.
遇到這種情況如何解決?
很顯然是vue-i18n配置這裏出了問題。
直接找到這些文件夾,一一對應修改,添加路由的各語言對應名稱。
修改這三個文件之後保存,正常運行沒有報錯了。
iview-admin框架克隆到本地,添加路由的時候,稍不注意就會遇到以下情況:
Value of key 'xxx' is not string!
Cannot translate the value of keypath 'xxx'. Use the value of keypath as default.
遇到這種情況如何解決?
很顯然是vue-i18n配置這裏出了問題。
直接找到這些文件夾,一一對應修改,添加路由的各語言對應名稱。
修改這三個文件之後保存,正常運行沒有報錯了。