PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,33 +1,34 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
|
||||
export interface ITest {
|
||||
finishLoading: boolean
|
||||
}
|
||||
|
||||
export const useTestStore = defineStore({
|
||||
id: 'TestStore',
|
||||
state: (): ITest => ({
|
||||
finishLoading: false,
|
||||
}),
|
||||
export const useTestStore = defineStore(
|
||||
'TestStore',
|
||||
{
|
||||
state: (): ITest => ({
|
||||
finishLoading: false,
|
||||
}),
|
||||
|
||||
getters: {
|
||||
getters: {
|
||||
|
||||
isMyLang: (state: ITest) => (rec: { lang: string }): boolean => {
|
||||
if (!rec.lang) return true
|
||||
isMyLang: (state: ITest) => (rec: { lang: string }): boolean => {
|
||||
if (!rec.lang) return true
|
||||
|
||||
return (rec.lang === toolsext.getLocale(false) || toolsext.getLocale() === '')
|
||||
},
|
||||
|
||||
return (rec.lang === toolsext.getLocale(false) || toolsext.getLocale() === '')
|
||||
},
|
||||
|
||||
},
|
||||
actions: {
|
||||
testProva() {
|
||||
let arrpagesroute = null
|
||||
|
||||
actions: {
|
||||
testProva() {
|
||||
let arrpagesroute = null
|
||||
arrpagesroute = this.isMyLang({ lang: 'test' })
|
||||
},
|
||||
|
||||
arrpagesroute = this.isMyLang({ lang: 'test' })
|
||||
},
|
||||
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user