redirect to default base on login #984
This commit is contained in:
@ -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 () {
|
||||
|
Reference in New Issue
Block a user