mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 23:47:43 +08:00
✨ Feature(custom): tab state of pre-process page is persistent
This commit is contained in:
@@ -1053,6 +1053,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { useStorage } from '@vueuse/core'
|
||||||
import {
|
import {
|
||||||
Droplets,
|
Droplets,
|
||||||
Edit,
|
Edit,
|
||||||
@@ -1084,7 +1085,7 @@ import { getConfig, saveConfig } from '@/utils/dataSender'
|
|||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
const activeTab = ref('general')
|
const activeTab = useStorage<string>('image-process-setting-active-tab', 'general')
|
||||||
|
|
||||||
// Tab indicator animation
|
// Tab indicator animation
|
||||||
const tabRefs = useTemplateRef('tabRefs')
|
const tabRefs = useTemplateRef('tabRefs')
|
||||||
|
|||||||
Reference in New Issue
Block a user