mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 05:12:34 +09:00
대량등록, 사용자ID 등록 팝업 수정
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
import { mapGetters } from 'vuex';
|
||||
import loginApi from '@/modules/login/service/api';
|
||||
import logoutModal from "./logoutModal";
|
||||
import tokenSvc from '@/common/token-service';
|
||||
|
||||
export default {
|
||||
name: "hubWebHeader",
|
||||
@@ -36,7 +37,11 @@ export default {
|
||||
},
|
||||
created() {
|
||||
// console.log(this.$store["login/isLogin"])
|
||||
// this.$store.getters.getCounter
|
||||
// this.$store.getters.getCounter
|
||||
const loggedIn = !!tokenSvc.getToken();
|
||||
if(!loggedIn){
|
||||
window.top.location.href = '/login';
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
|
||||
@@ -41,6 +41,7 @@ export default {
|
||||
created() {
|
||||
this.isLogin = !!tokenSvc.getToken();
|
||||
let curPage = location.pathname;
|
||||
|
||||
if (this.isLogin && curPage != "/login") {
|
||||
this.$store.commit("login/isLogin", true);
|
||||
this.setMenuData();
|
||||
@@ -48,7 +49,7 @@ export default {
|
||||
this.$store.commit("login/isLogin", false);
|
||||
this.isLogin = false;
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
mounted() {
|
||||
//this.menuhighlight();
|
||||
@@ -61,7 +62,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
getLogin(data) {
|
||||
if (data != null && data != '' && data == true) {
|
||||
if (data != null && data != '' && data == true) {
|
||||
this.isLogin = true;
|
||||
this.setMenuData();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user