This commit is contained in:
Surya Paolo
2025-03-03 00:59:21 +01:00
parent 6d112b8e45
commit 723ccf07cf

View File

@@ -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