소스 검색

redirect to default base on login #984

bach 4 년 전
부모
커밋
64dadbccf0
2개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 0 0
      web/themes/custom/materiotheme/assets/dist/main.js
  2. 8 0
      web/themes/custom/materiotheme/vuejs/components/Block/LoginBlock.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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 () {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.