添加缓存页面排除

hyx_2024-10-30_new
shanao 2024-10-23 14:23:31 +08:00
parent 754501dfe9
commit 04b6e8f93b
10 changed files with 22 additions and 18 deletions

View File

@ -1,6 +1,8 @@
<template> <template>
<div> <div>
<List v-if="activeName === 'List'" ref="List" /> <keep-alive>
<List v-if="activeName === 'List'" ref="List" />
</keep-alive>
<Add v-if="activeName === 'AddOrEdit'" ref="AddOrEdit" /> <Add v-if="activeName === 'AddOrEdit'" ref="AddOrEdit" />
</div> </div>
</template> </template>

View File

@ -1,6 +1,8 @@
<template> <template>
<div> <div>
<List v-if="activeName === 'List'" ref="List" /> <keep-alive>
<List v-if="activeName === 'List'" ref="List" />
</keep-alive>
<Add v-if="activeName === 'AddOrEdit'" ref="AddOrEdit" /> <Add v-if="activeName === 'AddOrEdit'" ref="AddOrEdit" />
</div> </div>
</template> </template>

View File

@ -2,10 +2,10 @@
<div> <div>
<keep-alive> <keep-alive>
<List v-if="activeName=='List'" ref="list" /> <List v-if="activeName=='List'" ref="list" />
<hiddenList v-else-if="activeName=='hiddenList'" ref="HiddenList" />
<Detail v-else-if="activeName=='Detail'" ref="Detail" />
<Evaluate v-else-if="activeName=='Evaluate'" ref="Evaluate" />
</keep-alive> </keep-alive>
<hiddenList v-if="activeName=='hiddenList'" ref="HiddenList" />
<Detail v-if="activeName=='Detail'" ref="Detail" />
<Evaluate v-if="activeName=='Evaluate'" ref="Evaluate" />
</div> </div>
</template> </template>

View File

@ -2,9 +2,9 @@
<div> <div>
<keep-alive> <keep-alive>
<List v-if="activeName=='List'" ref="List" /> <List v-if="activeName=='List'" ref="List" />
<Detail v-if="activeName=='detail'" ref="Detail" />
<SumDetail v-if="activeName=='sumDetail'" ref="SumDetail" />
</keep-alive> </keep-alive>
<Detail v-if="activeName=='detail'" ref="Detail" />
<SumDetail v-if="activeName=='sumDetail'" ref="SumDetail" />
</div> </div>
</template> </template>

View File

@ -2,12 +2,12 @@
<div> <div>
<keep-alive> <keep-alive>
<List v-if="activeName=='List'" ref="list" /> <List v-if="activeName=='List'" ref="list" />
<HiddenList v-if="activeName=='hiddenList'" ref="HiddenList" />
<InitialDetail v-if="activeName=='initialDetail'" ref="InitialDetail" />
<Detail v-if="activeName=='Detail'" ref="Detail" />
<Evaluate v-if="activeName=='Evaluate'" ref="Evaluate" />
<ReplenishEvaluate v-if="activeName=='replenishEvaluate'" ref="ReplenishEvaluate" />
</keep-alive> </keep-alive>
<HiddenList v-if="activeName=='hiddenList'" ref="HiddenList" />
<InitialDetail v-if="activeName=='initialDetail'" ref="InitialDetail" />
<Detail v-if="activeName=='Detail'" ref="Detail" />
<Evaluate v-if="activeName=='Evaluate'" ref="Evaluate" />
<ReplenishEvaluate v-if="activeName=='replenishEvaluate'" ref="ReplenishEvaluate" />
</div> </div>
</template> </template>

View File

@ -2,9 +2,9 @@
<div> <div>
<keep-alive> <keep-alive>
<List v-if="activeName=='List'" ref="List" /> <List v-if="activeName=='List'" ref="List" />
<Detail v-if="activeName=='detail'" ref="Detail" />
<SumDetail v-if="activeName=='sumDetail'" ref="SumDetail" />
</keep-alive> </keep-alive>
<Detail v-if="activeName=='detail'" ref="Detail" />
<SumDetail v-if="activeName=='sumDetail'" ref="SumDetail" />
</div> </div>
</template> </template>

View File

@ -2,8 +2,8 @@
<div> <div>
<keep-alive> <keep-alive>
<List v-show="activeName=='List'" ref="list" /> <List v-show="activeName=='List'" ref="list" />
<Info v-if="activeName=='Info'" />
</keep-alive> </keep-alive>
<Info v-if="activeName=='Info'" />
</div> </div>
</template> </template>

View File

@ -3,8 +3,8 @@
<div> <div>
<keep-alive> <keep-alive>
<List v-show="activeName=='List'" ref="list" /> <List v-show="activeName=='List'" ref="list" />
<Info v-if="activeName=='Info'" />
</keep-alive> </keep-alive>
<Info v-if="activeName=='Info'" />
</div> </div>
</template> </template>

View File

@ -3,8 +3,8 @@
<div> <div>
<keep-alive> <keep-alive>
<List v-show="activeName=='List'" ref="list" /> <List v-show="activeName=='List'" ref="list" />
<Info v-if="activeName=='Info'" />
</keep-alive> </keep-alive>
<Info v-if="activeName=='Info'" />
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<keep-alive> <keep-alive include="CorpInfoList" exclude="CorpInfoEdit,CorpInfoAdd">
<component :is="activeName" /> <component :is="activeName" />
</keep-alive> </keep-alive>
</template> </template>