수정건 수정

This commit is contained in:
USER
2022-08-03 17:40:17 +09:00
parent abb5db5b97
commit 811986fa6d
24 changed files with 327 additions and 161 deletions

View File

@@ -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>