Kaynağa Gözat

redirect to default base on login #984

bach 4 yıl önce
ebeveyn
işleme
64dadbccf0

Dosya farkı çok büyük olduğundan ihmal edildi
+ 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 () {

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor