diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67de1499..127084bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: node:12-alpine +image: node:16-alpine variables: &global_variables DOCKER_DRIVER: overlay2 diff --git a/Dockerfile b/Dockerfile index fef057d9..f5b9fe8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10-alpine as build +FROM node:16-alpine as build COPY . . diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index 0d9ce643..66fe0dc5 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -38,7 +38,9 @@ export default { }, logout() { this.$store.dispatch('LogOut').then(() => { - location.reload()// In order to re-instantiate the vue-router object to avoid bugs + if (location.reload) { + location.reload() // In order to re-instantiate the vue-router object to avoid bugs + } }) } }