mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 06:52:01 +09:00
웹취약점, 모의해킹 조치
This commit is contained in:
@@ -10,14 +10,15 @@
|
||||
</span>
|
||||
|
||||
<p class="error-btns">
|
||||
<a href="#" @click="backGo()">이전 페이지로</a><a href="#" @click="goMain()">메인으로</a>
|
||||
<a href="javascript:void(0);" @click="backGo()">이전 페이지로</a><a href="javascript:void(0);" @click="goMain()">메인으로</a>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
export default {
|
||||
name: 'error404',
|
||||
data: function() {
|
||||
return {
|
||||
|
||||
@@ -27,7 +28,6 @@
|
||||
this.$store.commit("login/isErrorPage", true);
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
destroyed() {
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
@@ -35,13 +35,17 @@
|
||||
methods: {
|
||||
// 이전 페이지
|
||||
backGo() {
|
||||
const beforeUrl = this.$store.getters['login/getBeforeUrl'];
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.go(-1);
|
||||
this.$router.push({ path: beforeUrl }).catch(()=>{
|
||||
});
|
||||
},
|
||||
// 메인 페이지
|
||||
goMain(){
|
||||
const rootUrl = this.$store.getters['login/getRootUrl'];
|
||||
this.$store.commit("login/isErrorPage", false);
|
||||
this.$router.push({ path: '/' });
|
||||
this.$router.push({ path: rootUrl }).catch(()=>{
|
||||
});;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
<template>
|
||||
<body>
|
||||
<div v-if="!isErrPage" class="wrap" v-bind:class="{'main_wrap': (isAuthChk), 'login-wrap': (!isLogin && !isAuthChk), 'bg-wrap': (isLogin && !isAuthChk) }" >
|
||||
<hub-web-header v-if="isAuthChk == true"></hub-web-header>
|
||||
<nav-bar v-if="isAuthChk == true"></nav-bar>
|
||||
<body>
|
||||
<div v-bind:class="{'wrap main_wrap': (isAuthChk), 'wrap login-wrap': (!isLogin && !isAuthChk), 'wrap bg-wrap': (isLogin && !isAuthChk), 'error-wrap': (isErrPage) }" >
|
||||
<hub-web-header v-if="isAuthChk == true && !isErrPage"></hub-web-header>
|
||||
<nav-bar v-if="isAuthChk == true && !isErrPage"></nav-bar>
|
||||
<router-view :key="$route.fullPath"></router-view>
|
||||
<hub-web-footer v-if="isAuthChk == false"></hub-web-footer>
|
||||
<hub-web-footer v-if="isAuthChk == false && !isErrPage"></hub-web-footer>
|
||||
</div>
|
||||
<div v-else class="error-wrap">
|
||||
<!-- <div v-else class="error-wrap">
|
||||
<router-view :key="$route.fullPath"></router-view>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="loadingDimmed" style="display: none"></div>
|
||||
<div class="sp-3balls" style="display: none"></div>
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -26,7 +31,6 @@ import "../assets/css/common.css";
|
||||
import "../assets/css/style.css";
|
||||
import "../assets/css/error.css";
|
||||
import { mapGetters } from 'vuex';
|
||||
import tokenSvc from '@/common/token-service';
|
||||
|
||||
export default {
|
||||
name: "hubwebLayout",
|
||||
@@ -34,7 +38,7 @@ export default {
|
||||
NavBar,
|
||||
HubWebHeader,
|
||||
HubWebFooter,
|
||||
},
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
isLogin: false,
|
||||
@@ -79,7 +83,7 @@ export default {
|
||||
} else {
|
||||
this.isAuthChk = false;
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user