mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 15:37:21 +08:00
✨ Feature(custom): imporve page loading performance and remove duplicated init call
This commit is contained in:
@@ -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,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user