Feature(custom): tab state of pre-process page is persistent

This commit is contained in:
Kuingsmile
2026-01-10 17:53:09 +08:00
parent b148eee606
commit c7509a74bf

View File

@@ -1053,6 +1053,7 @@
</template>
<script lang="ts" setup>
import { useStorage } from '@vueuse/core'
import {
Droplets,
Edit,
@@ -1084,7 +1085,7 @@ import { getConfig, saveConfig } from '@/utils/dataSender'
const { t } = useI18n()
const message = useMessage()
const activeTab = ref('general')
const activeTab = useStorage<string>('image-process-setting-active-tab', 'general')
// Tab indicator animation
const tabRefs = useTemplateRef('tabRefs')