로그인 관련 / 메뉴 링크 추가 / 홈페이지 로그인 적용

This commit is contained in:
kimre
2022-07-08 14:07:33 +09:00
parent 3d05b45299
commit b2ff509948
73 changed files with 1251 additions and 668 deletions

View File

@@ -3,11 +3,11 @@
<h1 class="logo"><a href="javascript:void(0)">uplus 메시지허브이지<span>BACKOFFICE</span></a></h1>
<div class="user_wrap">
<div class="user" @click="userInfoToggle();">
<p>슈퍼관리자</p>
<a href="javascript:void(0)" class="btn_user">Uplus01</a>
<p>{{ this.$store.getters['login/userNm'] }}</p>
<a href="javascript:void(0)" class="btn_user">{{ this.$store.getters['login/userId'] }}</a>
</div>
<div class="user_info">
<a href="superadmin_info.html" class="modify">정보수정</a>
<a href="javascript:void(0)" class="modify">정보수정</a>
<a href="javascript:void(0)" class="logout" @click="logout();">로그아웃</a>
</div>
</div>
@@ -30,12 +30,13 @@ export default {
}
},
created() {
// console.log(this.$store["login/isLogin"])
// this.$store.getters.getCounter
},
computed: {
...mapGetters({
getLogin: 'login/isLogin',
getErrorPage: 'login/isErrorPage',
getErrorPage: 'login/isErrorPage'
}),
},
watch: {
@@ -75,7 +76,7 @@ export default {
loginApi.logout().then(response => {
if(response.data.retCode == '0000'){
//tokenSvc.removeToken();
// tokenSvc.removeToken();
this.$router.push({
path: "/login"

View File

@@ -277,8 +277,8 @@ export default {
}
</script>
<style>
.popup-btn-wrap {width: 500px; margin: auto; padding: 100px 0;}
.popup-btn-wrap button {width: 100%; margin-bottom: 10px; height: 50px; border-radius: 5px; box-shadow: none; border: 1px solid #000; }
.popup-btn-wrap button:hover {background: #000; color: #fff;}
</style>
<!--<style>-->
<!--.popup-btn-wrap {width: 500px; margin: auto; padding: 100px 0;}-->
<!--.popup-btn-wrap button {width: 100%; margin-bottom: 10px; height: 50px; border-radius: 5px; box-shadow: none; border: 1px solid #000; }-->
<!--.popup-btn-wrap button:hover {background: #000; color: #fff;}-->
<!--</style>-->

View File

@@ -4,7 +4,7 @@
<!-- 선택한 메뉴 li.is-current -->
<li v-for="child in menuList" :key="child.menuNo" :class="child.classNm">
<div class="menu_btn" ></div>
<a class="menu_target" @click="actionMenu" :data-menu-no="child.menuNo">{{child.menuNm}}</a>
<a href="javascript:void(0);" class="menu_target" @click="actionMenu" :data-menu-no="child.menuNo">{{child.menuNm}}</a>
<div class="sub_menu_wrap">
<ul class="sub_menu" v-if="child.children.length > 0">
<li v-for="child2 in child.children" :key="child2.menuNo">
@@ -115,11 +115,11 @@ export default {
//this.$store.commit("login/isAuthChk", true);
} else {
window.top.location.href = '/';
this.isLogin = false;
// this.isLogin = false;
this.menuList = null;
}
}).catch(rsponse => {
this.isLogin = false;
// this.isLogin = false;
this.menuList = null;
})
},