diff --git a/htdocs/src/App.vue b/htdocs/src/App.vue index c9ee5b6..3e313f1 100644 --- a/htdocs/src/App.vue +++ b/htdocs/src/App.vue @@ -1,6 +1,6 @@ @@ -53,7 +56,7 @@ function updateSession (t) { console.error('Invalid session, your have been logged out:', error.response.errmsg) t.session = null t.loggedUser = null - sessionStorage.token = undefined + delete sessionStorage.token } ) } @@ -69,8 +72,8 @@ export default { }, mounted () { - this.$on('login', this.login) updateSession(this) + this.$on('login', this.login) }, methods: { diff --git a/htdocs/src/main.js b/htdocs/src/main.js index 63a2976..2a25f77 100644 --- a/htdocs/src/main.js +++ b/htdocs/src/main.js @@ -1,14 +1,13 @@ import Vue from 'vue' import App from './App.vue' -import BootstrapVue from 'bootstrap-vue' +import { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue' import router from './router' -import 'bootstrap/dist/css/bootstrap.css' -import 'bootstrap-vue/dist/bootstrap-vue.css' - -require('./assets/css/glyphicon.css') +import 'bootstrap/dist/css/bootstrap.min.css' +import 'bootstrap-vue/dist/bootstrap-vue.min.css' Vue.use(BootstrapVue) +Vue.use(BootstrapVueIcons) Vue.config.productionTip = false diff --git a/htdocs/src/views/Home.vue b/htdocs/src/views/Home.vue index fc2e940..823ce8a 100644 --- a/htdocs/src/views/Home.vue +++ b/htdocs/src/views/Home.vue @@ -1,18 +1,55 @@ - + diff --git a/htdocs/src/views/login.vue b/htdocs/src/views/login.vue index 27fb2d7..7f915d3 100644 --- a/htdocs/src/views/login.vue +++ b/htdocs/src/views/login.vue @@ -1,36 +1,60 @@