redirect to default base on login #984

This commit is contained in:
2021-01-19 16:38:26 +01:00
parent f4174fac16
commit 64dadbccf0
2 changed files with 9 additions and 1 deletions

View File

@ -2,8 +2,11 @@
import Vue from 'vue'
import { mapState, mapActions } from 'vuex'
import router from 'vuejs/route'
export default {
name: "LoginBlock",
router,
props: ['title', 'block'],
data () {
return {
@ -23,6 +26,11 @@ export default {
this.userLogin({
mail: this.mail,
pass: this.password
}).then(() => {
console.log("LoginBlock user logged-in")
this.$router.push({
name: 'base'
})
})
},
request_password () {