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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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