Limit tab to 7 tabs

This commit is contained in:
Michael
2025-09-03 18:43:52 +09:00
parent 1c9546a99a
commit 4cc5ad8e05
2 changed files with 30 additions and 0 deletions

View File

@ -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(
// ">>>>>>>>>> ",