Ancora sistemazioni Typescript... getters, mutations, actions... "@" alias.

This commit is contained in:
paolo
2018-11-17 20:32:28 +01:00
parent 7c49a97217
commit 794e7088e7
22 changed files with 184 additions and 165 deletions

View File

@@ -1,6 +1,6 @@
import Vue from 'vue'
import { Component, Watch, Prop } from 'vue-property-decorator'
import { GlobModule } from '@/store/Modules/glob'
import { Component } from 'vue-property-decorator'
import { GlobalStore } from '@store'
require('./home.scss')
@@ -29,12 +29,12 @@ export default class Home extends Vue {
}
get conta() {
return GlobModule.conta
return GlobalStore.getters.getConta
}
set conta(valore) {
GlobModule.setConta(valore)
var my = this.$q.i18n.lang
GlobalStore.actions.setConta(valore)
let my = this.$q.i18n.lang
this.showNotification(String(my))
}