[vue-router]「路由名」という名前のルートは存在しません。报错[vue-router]「」という名前のルートは存在しません。

[vue-router]「SetServerReceivingAddress」という名前のルートが存在しません

ルーティングルール:

{
    
    
        path: '/system/setServerReceivingAddress',
        name: 'setServerReceivingAddress',
        component: SetServerReceivingAddress
      },

使用する場合:

{
    
    
            title: i18n.t('setServerReceivingAddress'),
            name: 'SetServerReceivingAddress',
            href: '/system/setServerReceivingAddress',
            enable: control.SYSTEM_NORMAL_PRINTER && !isSlave
          }

// 最后使用的时候是: $router.push('name')

上記のエラーは、2つの名前が同じでないために発生します。ルールに名前を付ける場合、名前の最初の文字は小文字ですが、使用すると最初の文字は大文字になります

おすすめ

転載: blog.csdn.net/weixin_43131046/article/details/123203126