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