Browse Source

redirect to default base on login #984

bach 3 years ago
parent
commit
64dadbccf0

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


+ 8 - 0
web/themes/custom/materiotheme/vuejs/components/Block/LoginBlock.vue

@@ -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 () {

Some files were not shown because too many files changed in this diff