mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(components): fix homeTab closeRight and disable colseLeft
This commit is contained in:
@ -192,6 +192,12 @@ export const useTabStore = defineStore(SetupStoreId.Tab, () => {
|
||||
* @param tabId
|
||||
*/
|
||||
async function clearRightTabs(tabId: string) {
|
||||
const isHomeTab = tabId === homeTab.value?.id;
|
||||
if (isHomeTab) {
|
||||
clearTabs();
|
||||
return;
|
||||
}
|
||||
|
||||
const tabIds = tabs.value.map(tab => tab.id);
|
||||
const index = tabIds.indexOf(tabId);
|
||||
if (index === -1) return;
|
||||
|
Reference in New Issue
Block a user