대량등록, 사용자ID 등록 팝업 수정

This commit is contained in:
USER
2022-07-19 16:40:10 +09:00
parent f9d6fe61ca
commit 681c0bb102
12 changed files with 68 additions and 21 deletions

View File

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

View File

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