From 8092217e8a5319a24ec8b67b7b303428b94710c4 Mon Sep 17 00:00:00 2001 From: 1iyc <5212514+liycone@user.noreply.gitee.com> Date: Fri, 1 Nov 2024 17:23:59 +0800 Subject: [PATCH] =?UTF-8?q?Tab=E7=BB=84=E4=BB=B61.1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 1iyc <5212514+liycone@user.noreply.gitee.com> --- src/components/TabComponent/index.vue | 85 +++++++++++++++++++++++++-- src/views/gather/pool/index.vue | 21 ------- 2 files changed, 80 insertions(+), 26 deletions(-) diff --git a/src/components/TabComponent/index.vue b/src/components/TabComponent/index.vue index 74cb9c4..c721718 100644 --- a/src/components/TabComponent/index.vue +++ b/src/components/TabComponent/index.vue @@ -3,13 +3,15 @@ - 新建标签页 + +
+ 新建标签页 +
@@ -24,7 +26,50 @@ 修改 断开 -
这是标签页 {{ tab.title }} 的内容
+ 打开 + + + + + + + + + + + + +
@@ -72,6 +117,9 @@ diff --git a/src/views/gather/pool/index.vue b/src/views/gather/pool/index.vue index f79b3d7..d7b3d7d 100644 --- a/src/views/gather/pool/index.vue +++ b/src/views/gather/pool/index.vue @@ -41,27 +41,6 @@ export default { methods: { async openDB(data) { await this.closeDialog(); - /*try { - const response = await request({ - method: 'put', - url: "", // 确保 URL 是正确的 - data: data - }); - - if (response.data.success) { - const newTab = response.data.tab; - this.tabs.push(newTab); - this.activeTab = (this.tabs.length - 1).toString(); - this.addTabDialogVisible = false; - this.$message.success('标签页添加成功'); - } else { - this.$message.error('标签页添加失败'); - } - } catch (error) { - await this.closeDialog(); - this.$message.error('请求失败,请稍后再试'); - console.error(error); - }*/ }, async closeDialog() { if (this.$refs.tabComponent) {