pref(download): keep model content status

This commit is contained in:
hayden
2024-11-08 11:49:18 +08:00
parent ae518b541a
commit 3a0676b29f

View File

@@ -28,6 +28,7 @@
<ResponseScroll class="-mx-5 h-full"> <ResponseScroll class="-mx-5 h-full">
<div class="px-5"> <div class="px-5">
<KeepAlive>
<ModelContent <ModelContent
v-if="currentModel" v-if="currentModel"
:key="currentModel.id" :key="currentModel.id"
@@ -43,6 +44,7 @@
></Button> ></Button>
</template> </template>
</ModelContent> </ModelContent>
</KeepAlive>
<div v-show="data.length === 0"> <div v-show="data.length === 0">
<div class="flex flex-col items-center gap-4 py-8"> <div class="flex flex-col items-center gap-4 py-8">