🎨 调整 keep-alive 策略

This commit is contained in:
ronger 2022-11-25 15:12:19 +08:00
parent 1be61d65e3
commit fdbdfe29d4
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<header-view/>
</el-header>
<el-main>
<nuxt keep-alive/>
<nuxt/>
</el-main>
<el-footer height="5rem">
<footer-view/>

View File

@ -23,7 +23,8 @@
:name="item.name"
:closable="item.closable"
>
<nuxt-child keep-alive :keep-alive-props="{exclude: ['login', 'register', 'admin-dashboard'],max: 10}"/>
<nuxt-child keep-alive
:keep-alive-props="{include: editableTabs}"/>
</el-tab-pane>
</el-tabs>
</el-col>