vue keep-alive 用来缓存组件,避免多次加载相应的组件,减少性能消耗. <keep-alive> <component> <!-- 组件将被缓存 --> </component> </keep-alive>