After changing the name of the menu bar on the left side of iview-admin, the content of the title cannot be displayed normally.

After changing the name of the menu bar on the left, the content of the title cannot be displayed normally.
After configuring the routing, such a warn always appears. The problem is in the language configuration of [vue-i18n].

Method 1: Because only Chinese is written when configuring the path, you need to modify the corresponding other languages ​​in the language configuration,
refer to the link: https://blog.csdn.net/weixin_34032621/article/details/88659926

Method 2: src\config\index.js sets the internationalization to false, (the project pulled from github defaults to true from the beginning)

  /**
   * @description 是否使用国际化,默认为false
   *              如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
   *              用来在菜单中显示文字
   */
  useI18n: false,

Guess you like

Origin blog.csdn.net/qq_34082921/article/details/131246869