remove useI18n

This commit is contained in:
jb-alvarado 2024-04-14 22:02:50 +02:00
parent 044fab637b
commit 0dde8e3071

View File

@ -10,6 +10,7 @@ export const useMedia = defineStore('media', {
folderList: {} as FolderObject, folderList: {} as FolderObject,
folderCrumbs: [] as Crumb[], folderCrumbs: [] as Crumb[],
isLoading: false, isLoading: false,
notExist: useNuxtApp().$i18n.t('media.notExists'),
}), }),
getters: {}, getters: {},
@ -19,7 +20,6 @@ export const useMedia = defineStore('media', {
this.isLoading = true this.isLoading = true
} }
const { t } = useI18n()
const authStore = useAuth() const authStore = useAuth()
const configStore = useConfig() const configStore = useConfig()
const indexStore = useIndex() const indexStore = useIndex()
@ -37,7 +37,7 @@ export const useMedia = defineStore('media', {
if (response.status === 200) { if (response.status === 200) {
return response.json() return response.json()
} else { } else {
indexStore.msgAlert('error', t('media.notExists'), 3) indexStore.msgAlert('error', this.notExist, 3)
return { return {
source: '', source: '',