[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つの名前が同じでないために発生します。ルールに名前を付ける場合、名前の最初の文字は小文字ですが、使用すると最初の文字は大文字になります