From 552bc2a4bff35ed89ab9ea44d43196cae9b606f0 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sun, 14 Apr 2024 21:52:31 +0200 Subject: [PATCH] test table --- pages/player.vue | 80 +++++++++++++++++++++++++----------------------- stores/media.ts | 4 +-- 2 files changed, 43 insertions(+), 41 deletions(-) diff --git a/pages/player.vue b/pages/player.vue index ed6c9023..db52f4da 100644 --- a/pages/player.vue +++ b/pages/player.vue @@ -95,42 +95,40 @@ -
+
-
-
{{ $t('player.start') }}
-
{{ $t('player.file') }}
-
{{ $t('player.play') }}
-
{{ $t('player.duration') }}
- - - -
{{ $t('player.edit') }}
- -
-
+ + + + + + + + + + + + + + - +
{{ $t('player.start') }}{{ $t('player.file') }}{{ $t('player.play') }}{{ $t('player.duration') }}{{ $t('player.edit') }}
@@ -226,7 +224,11 @@ > -
diff --git a/stores/media.ts b/stores/media.ts index b2b9f01d..30fe4313 100644 --- a/stores/media.ts +++ b/stores/media.ts @@ -10,6 +10,7 @@ export const useMedia = defineStore('media', { folderList: {} as FolderObject, folderCrumbs: [] as Crumb[], isLoading: false, + notExist: useNuxtApp().$i18n.t('media.notExists'), }), getters: {}, @@ -19,7 +20,6 @@ export const useMedia = defineStore('media', { this.isLoading = true } - const { t } = useI18n() const authStore = useAuth() const configStore = useConfig() const indexStore = useIndex() @@ -37,7 +37,7 @@ export const useMedia = defineStore('media', { if (response.status === 200) { return response.json() } else { - indexStore.msgAlert('error', t('media.notExists'), 3) + indexStore.msgAlert('error', this.notExist, 3) return { source: '',