Invalid prop: type check failed for prop "router". Expected Boolean, got String with value "true".
时间: 2023-10-19 20:31:08 浏览: 152
这个错误是因为在Vue ElementUI的菜单导航组件中,你将"router"属性设置为了字符串"true",但是这个属性期望的是一个布尔值而不是字符串。所以导致了类型检查失败的错误。要解决这个问题,你需要将"router"属性的值改为布尔值true,而不是字符串"true"。这样就能正确地使用菜单导航进行页面跳转了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Vue + ElementUI: Invalid prop: type check failed for prop “router“. Expected Boolean, got String.....](https://blog.csdn.net/Yuki_Aruki/article/details/124624553)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Invalid prop: type check failed for prop “router“. Expected Boolean, got String with value “true...](https://blog.csdn.net/qq_42120178/article/details/100712092)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文