mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 04:11:27 +09:00
수정건 수정
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<script>
|
||||
import { mapGetters } from 'vuex';
|
||||
import api from '../service/api';
|
||||
import tokenSvc from '@/common/token-service';
|
||||
// import tokenSvc from '@/common/token-service';
|
||||
import { utils_mixin, chkPattern2 } from '../service/mixins';
|
||||
import LoginPopup from '@/components/LoginPopup.vue'
|
||||
import commonModal from "../components/commonModal";
|
||||
@@ -83,6 +83,12 @@ export default {
|
||||
,commonModal
|
||||
},
|
||||
created() {
|
||||
const historyUrl = this.$router.options.history.state.back;
|
||||
console.log(historyUrl);
|
||||
console.log('>>>>1111>>>>'+this.getLogin);
|
||||
if(!this.getLogin){
|
||||
this.$router.push({ path: '/login' });
|
||||
}
|
||||
// if(!!tokenSvc.getToken()){
|
||||
// this.$store.commit("login/isLogin", true);
|
||||
// this.$store.commit("login/isAuthChk", true);
|
||||
@@ -193,6 +199,14 @@ export default {
|
||||
vm.$store.commit("login/isLogin", false);
|
||||
vm.$store.commit("login/isAuthChk", false);
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}else if(rsp.retCode == '4022'){
|
||||
this.row.title = '인증실패';
|
||||
this.row.msg1 = '계정 잠김 잠시후 다시 시도해주세요.';
|
||||
this.row.msg2 = '로그아웃 됩니다.';
|
||||
this.row.callFnc = 'login'
|
||||
vm.$store.commit("login/isLogin", false);
|
||||
vm.$store.commit("login/isAuthChk", false);
|
||||
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||
}else if (!this.timer) {
|
||||
this.timerStop(this.timer);
|
||||
this.timer = null;
|
||||
@@ -362,7 +376,7 @@ export default {
|
||||
if(callFnc === 'login'){
|
||||
this.$router.push({ path: '/'});
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user