Feature(custom): imporve page loading performance and remove duplicated init call

This commit is contained in:
Kuingsmile
2026-01-10 10:10:00 +08:00
parent a12ff2a52c
commit a569068678
22 changed files with 1092 additions and 1076 deletions
+3 -2
View File
@@ -112,9 +112,10 @@ import { Settings } from 'lucide-vue-next'
import { computed, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { picBedGlobal } from '@/utils/global'
import { usePicBed } from '@/hooks/useGlobal'
const { t } = useI18n()
const { picBedG } = usePicBed()
interface SelectOption {
value: string | number
@@ -166,7 +167,7 @@ const emit = defineEmits<{
const showSettings = ref(false)
const availablePicbeds = computed(() => {
return picBedGlobal.value.map(picbed => ({
return picBedG.value.map(picbed => ({
type: picbed.type,
name: picbed.name,
}))