为什么在对象里可以传,字符串里没法传了,子路由没有挂载,这是什么情况?
应该是语法错误。参考:https://router.vuejs.org/zh/api/#to支持string/location 你上面写的是单引号?”'string'“?还是``这个?望采纳!