agg
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import { toolsext } from '@src/store/Modules/toolsext'
|
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 { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
// import { fieldsTable } from '@src/store/Modules/fieldsTable'
|
// import { fieldsTable } from '@src/store/Modules/fieldsTable'
|
||||||
@@ -16,12 +18,14 @@ import { fieldsTable } from '@store/Modules/fieldsTable'
|
|||||||
|
|
||||||
import { useProducts } from '@store/Products'
|
import { useProducts } from '@store/Products'
|
||||||
|
|
||||||
|
const { t } = i18n.global;
|
||||||
|
|
||||||
// You can declare a mixin as the same style as components.
|
// You can declare a mixin as the same style as components.
|
||||||
export default function () {
|
export default function () {
|
||||||
function showNotif(msg: string) {
|
function showNotif(msg: string) {
|
||||||
const $q = useQuasar()
|
const $q = useQuasar()
|
||||||
|
|
||||||
const { t } = useI18n()
|
|
||||||
|
|
||||||
tools.showNotif($q, t(msg))
|
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) {
|
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 userStore = useUserStore()
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
const { t } = useI18n()
|
|
||||||
|
|
||||||
// console.log('setValDb', key, value, serv, table, subkey, indrec, subsubkey, specialField)
|
// console.log('setValDb', key, value, serv, table, subkey, indrec, subsubkey, specialField)
|
||||||
let mydatatosave: IDataPass | null = null
|
let mydatatosave: IDataPass | null = null
|
||||||
|
|||||||
Reference in New Issue
Block a user