From 7e24830e497d620b71a40ed5e75625b35b35afc6 Mon Sep 17 00:00:00 2001 From: 188633308 <188633308@qq.com> Date: Sun, 25 Apr 2021 21:09:25 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/views/main/_layout/content.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Web/src/views/main/_layout/content.vue b/Web/src/views/main/_layout/content.vue index 399872a..40cf717 100644 --- a/Web/src/views/main/_layout/content.vue +++ b/Web/src/views/main/_layout/content.vue @@ -23,8 +23,16 @@ 重新加载 关闭 - 关闭其他标签页 - 关闭右侧标签页 + 关闭其他标签页 + 关闭右侧标签页 @@ -103,6 +111,14 @@ export default { this.$message.error('复制错误'); } }, + + hasOther(pane) { + return this.panes.filter((p) => p.key !== pane.key && p.closable).length > 0; + }, + + hasRight(pane) { + return this.panes.length > this.panes.indexOf(pane) + 1; + }, }, }; \ No newline at end of file