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) {