添加缓存页面排除

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>
<div>
<keep-alive>
<List v-if="activeName === 'List'" ref="List" />
</keep-alive>
<Add v-if="activeName === 'AddOrEdit'" ref="AddOrEdit" />
</div>
</template>

View File

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

View File

@ -2,10 +2,10 @@
<div>
<keep-alive>
<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>
<hiddenList v-if="activeName=='hiddenList'" ref="HiddenList" />
<Detail v-if="activeName=='Detail'" ref="Detail" />
<Evaluate v-if="activeName=='Evaluate'" ref="Evaluate" />
</div>
</template>

View File

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

View File

@ -2,12 +2,12 @@
<div>
<keep-alive>
<List v-if="activeName=='List'" ref="list" />
</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" />
</keep-alive>
</div>
</template>

View File

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

View File

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

View File

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

View File

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

View File

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