fix: tab active incorrectly, when click tab space (#152)

This commit is contained in:
云泥
2022-09-01 15:49:15 +08:00
committed by GitHub
parent b88356ba46
commit 0b4e738699

View File

@@ -194,6 +194,7 @@ export default defineComponent({
editTabIndex.value = index; editTabIndex.value = index;
} }
function handleClick(el: any) { function handleClick(el: any) {
el.stopPropagation();
needQuery.value = true; needQuery.value = true;
if (["tab-name", "edit-tab"].includes(el.target.className)) { if (["tab-name", "edit-tab"].includes(el.target.className)) {
return; return;