fix: translate
This commit is contained in:
@@ -2,12 +2,12 @@ import { useFetchJson } from '@/composable/useFetchJson'
|
||||
import type { Resp } from '@/types'
|
||||
import type { Settings } from '@/types/settings'
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
import { computed, ref } from 'vue'
|
||||
|
||||
export const useSettingsStore = defineStore('settings', () => {
|
||||
const settings = ref<Settings | null>(null)
|
||||
const loaded = ref(false)
|
||||
const shopDefaultLanguage= settings?.app?.shop_default_language
|
||||
const shopDefaultLanguage = computed(() => settings.value?.app?.shop_default_language ?? 1)
|
||||
|
||||
async function getSettings(): Promise<Settings | null> {
|
||||
if (loaded.value && settings.value) return settings.value
|
||||
|
||||
Reference in New Issue
Block a user