Vue挖坑指南:[vue-router] Named Route 'XXX' has a default child route.
這樣寫,會出現什麼問題呢?打開控制台看看。
Vue挖坑指南:[vue-router] Named Route 'XXX' has a default child route.
實踐
vue-router給我們報了兩個警告,我們一個一個來看。
第一個:[vue-router] Named Route 'companyStructure' has a default child route. When navigating to this named route (:to="{name: 'companyStructure'"), the default child route will not be rendered. Remove the name from this route and use the name of the default child route for named links instead.