未报错代码如下
收起
$router.options.routes[index].children 不是一个函数。 你需要打印$router看看一层一层找,看看都有没有值。用的时候做个判断if($router.options.routes[index].children){ //在使用}
报告相同问题?