/*错误写法*/
<keep-alive include="a, b"> <router-view/>
</keep-alive>
注意:
1. 逗号后不要加空格;
2. a、b为组件注册name,不是路由配置的name;
2024-02-18 22:24:01
/*错误写法*/
<keep-alive include="a, b"> <router-view/>
</keep-alive>
注意:
1. 逗号后不要加空格;
2. a、b为组件注册name,不是路由配置的name;