Limit tab to 7 tabs
This commit is contained in:
@ -136,6 +136,10 @@ export const state = () => Object.assign({}, INIT_STATE);
|
||||
export const mutations = {
|
||||
// 활성화 페이지 메뉴정보 set
|
||||
setActiveMenuInfo(state, payload) {
|
||||
const isTabAlreadyOpen = state.openTabList.includes(payload.prgmId);
|
||||
if(state.openTabList.length >= 7 && !isTabAlreadyOpen) {
|
||||
return;
|
||||
}
|
||||
// console.log("=======================================================");
|
||||
// console.log(
|
||||
// ">>>>>>>>>> ",
|
||||
|
Reference in New Issue
Block a user