From 723ccf07cf646ec8bf0348a8908b00482fd1010b Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Mon, 3 Mar 2025 00:59:21 +0100 Subject: [PATCH] agg --- src/mixins/mixin-base.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mixins/mixin-base.ts b/src/mixins/mixin-base.ts index 40fbaaa6..4f09bf19 100755 --- a/src/mixins/mixin-base.ts +++ b/src/mixins/mixin-base.ts @@ -1,5 +1,7 @@ import { toolsext } from '@src/store/Modules/toolsext' +import { i18n } from 'src/boot/i18n' // Importa l'istanza di i18n configurata in Quasar + import { useI18n } from 'vue-i18n' // import { fieldsTable } from '@src/store/Modules/fieldsTable' @@ -16,12 +18,14 @@ import { fieldsTable } from '@store/Modules/fieldsTable' import { useProducts } from '@store/Products' +const { t } = i18n.global; + // You can declare a mixin as the same style as components. export default function () { function showNotif(msg: string) { const $q = useQuasar() - const { t } = useI18n() + tools.showNotif($q, t(msg)) } @@ -46,7 +50,6 @@ export default function () { async function setValDb($q: any, key: string, value: any, type: any, serv: boolean, table?: string, subkey?: string, id?: any, indrec?: number, subsubkey?: string, specialField?: ISpecialField) { const userStore = useUserStore() const globalStore = useGlobalStore() - const { t } = useI18n() // console.log('setValDb', key, value, serv, table, subkey, indrec, subsubkey, specialField) let mydatatosave: IDataPass | null = null