Manca di includere il file .env

This commit is contained in:
paolo
2018-11-04 14:33:01 +01:00
parent 5b56636ba2
commit c81e816d97
10 changed files with 90 additions and 111 deletions

View File

@@ -10,8 +10,8 @@ declare module 'quasar' {
declare module 'quasar/types' {
import Vue, { VueConstructor, ComponentOptions } from 'vue'
import VueRouter from 'vue-router';
import { Store } from 'vuex';
import VueRouter from 'vue-router'
import { Store } from 'vuex'
export interface QuasarSsrContext {
req: {

View File

@@ -43,8 +43,6 @@
import { Component, Vue, Watch, Prop } from 'vue-property-decorator'
import { GlobModule } from '@/store/modules/glob'
//import { Notify } from 'quasar'
@Component({})
export default class Login extends Vue {
text = ''
@@ -71,15 +69,12 @@
set conta(valore) {
GlobModule.setConta(valore)
var my = process.env.LANG_DEFAULT;
this.showNotification(String(my));
}
mounted() {
console.log("mounted")
}
showNotification() {
this.$q.notify('Some other message')
showNotification(msg:string) {
this.$q.notify(msg)
}
initprompt() {

View File

@@ -8,6 +8,9 @@ export default ({ app, store, Vue }) => {
console.log("PLUGINS INIT....");
console.log("LANG_DEFAULT: ")
console.log(process.env.LANG_DEFAULT)
// Set i18n instance on app
app.i18n = new VueI18n({
locale: process.env.LANG_DEFAULT,