1.keep-alive 設置vue
<div id="app"> <keep-alive exclude="Detail"> <router-view/> </keep-alive> </div>app
2. vue-devtools工具工具
顯示的組件名稱是由vue中組件name決定spa