Fix logout
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import * as Forge from 'node-forge'
|
||||
import axios from 'axios'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
export default {
|
||||
_user: null,
|
||||
@@ -72,7 +69,6 @@ export default {
|
||||
window.localStorage.removeItem('refresh_token');
|
||||
await axios.post('authentication/logout')
|
||||
axios.defaults.headers['authorization'] = null;
|
||||
router.push({ name: 'login-form' })
|
||||
},
|
||||
|
||||
async getUser() {
|
||||
|
Reference in New Issue
Block a user