Merge pull request #510 from mixhowie/patch-1

fix: 关闭最后一个标签页时报错
This commit is contained in:
Aresn 2020-06-23 18:01:44 +08:00 committed by GitHub
commit 2ff1b13140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -292,7 +292,7 @@
setTimeout(() => this.transitioning = false, transitionTime); setTimeout(() => this.transitioning = false, transitionTime);
const nav = this.navList[index]; const nav = this.navList[index];
if (nav.disabled) return; if (!nav || nav.disabled) return;
this.activeKey = nav.name; this.activeKey = nav.name;
this.$emit('input', nav.name); this.$emit('input', nav.name);
this.$emit('on-click', nav.name); this.$emit('on-click', nav.name);