From 391d5ccaf90d95a1aac8eed57b01a9e350a2e14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=96=87=E5=BC=BA25704?= Date: Thu, 20 Mar 2025 17:05:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=96=B0=E6=A0=87=E7=AD=BE=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/project/DocTable/index.vue | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/front/src/views/project/DocTable/index.vue b/front/src/views/project/DocTable/index.vue index fdabc7d8..4f9aab07 100644 --- a/front/src/views/project/DocTable/index.vue +++ b/front/src/views/project/DocTable/index.vue @@ -487,7 +487,8 @@ export default { return ids }, onDocNew() { - this.goRoute(`/doc/new/${this.moduleId}`) + // this.goRoute(`/doc/new/${this.moduleId}`) + window.open(`/#/doc/new/${this.moduleId}`, '_blank') }, onFolderAdd() { this.$prompt(this.$t('inputFolderMsg'), this.$t('newFolderTitle'), { @@ -554,7 +555,10 @@ export default { }, onDocAdd(row) { this.pmsNextOrderIndex(row.children).then(order => { - this.goRoute(`/doc/new/${this.moduleId}/${row.id}?order=${order}`) + let url = '' + // this.goRoute(`/doc/new/${this.moduleId}/${row.id}?order=${order}`) + url = `/#/doc/new/${this.moduleId}/${row.id}?order=${order}` + window.open(url, '_blank') }) }, onDocFolderAdd(row) { @@ -580,18 +584,26 @@ export default { if (row.isFolder) { this.onFolderUpdate(row) } else { + let url = '' if (row.type !== this.getEnums().DOC_TYPE.HTTP) { - this.goRoute(`/doc/edit_custom/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/edit_custom/${this.moduleId}/${row.id}`) + + url = `/#/doc/edit_custom/${this.moduleId}/${row.id}` } else { - this.goRoute(`/doc/edit/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/edit/${this.moduleId}/${row.id}`) + url = `/#/doc/edit/${this.moduleId}/${row.id}` } + window.open(url, '_blank') } }, onDocCopy(row) { if (row.type === this.getEnums().DOC_TYPE.CUSTOM || row.type === this.getEnums().DOC_TYPE.MARKDOWN) { - this.goRoute(`/doc/copy_custom/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/copy_custom/${this.moduleId}/${row.id}`) + window.open(`/#/doc/copy_custom/${this.moduleId}/${row.id}`, '_blank') } else { - this.goRoute(`/doc/copy/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/copy/${this.moduleId}/${row.id}`) + let url = `/#/doc/copy/${this.moduleId}/${row.id}` + window.open(url, '_blank') } }, onExport() { -- Gitee From 625a6e33ce0561a89d8f3032117781523cd0e9e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=96=87=E5=BC=BA25704?= Date: Thu, 20 Mar 2025 17:05:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=96=B0=E6=A0=87=E7=AD=BE=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 操作打开新标签页2 --- front/src/views/project/DocTable/index.vue | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/front/src/views/project/DocTable/index.vue b/front/src/views/project/DocTable/index.vue index fdabc7d8..a50334b2 100644 --- a/front/src/views/project/DocTable/index.vue +++ b/front/src/views/project/DocTable/index.vue @@ -487,7 +487,8 @@ export default { return ids }, onDocNew() { - this.goRoute(`/doc/new/${this.moduleId}`) + // this.goRoute(`/doc/new/${this.moduleId}`) + window.open(`/#/doc/new/${this.moduleId}`, '_blank') }, onFolderAdd() { this.$prompt(this.$t('inputFolderMsg'), this.$t('newFolderTitle'), { @@ -554,7 +555,10 @@ export default { }, onDocAdd(row) { this.pmsNextOrderIndex(row.children).then(order => { - this.goRoute(`/doc/new/${this.moduleId}/${row.id}?order=${order}`) + let url = '' + // this.goRoute(`/doc/new/${this.moduleId}/${row.id}?order=${order}`) + url = `/#/doc/new/${this.moduleId}/${row.id}?order=${order}` + window.open(url, '_blank') }) }, onDocFolderAdd(row) { @@ -580,18 +584,26 @@ export default { if (row.isFolder) { this.onFolderUpdate(row) } else { + let url = '' if (row.type !== this.getEnums().DOC_TYPE.HTTP) { - this.goRoute(`/doc/edit_custom/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/edit_custom/${this.moduleId}/${row.id}`) + + url = `/#/doc/edit_custom/${this.moduleId}/${row.id}` } else { - this.goRoute(`/doc/edit/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/edit/${this.moduleId}/${row.id}`) + url = `/#/doc/edit/${this.moduleId}/${row.id}` } + window.open(url, '_blank') } }, onDocCopy(row) { if (row.type === this.getEnums().DOC_TYPE.CUSTOM || row.type === this.getEnums().DOC_TYPE.MARKDOWN) { - this.goRoute(`/doc/copy_custom/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/copy_custom/${this.moduleId}/${row.id}`) + window.open(`/#/doc/copy_custom/${this.moduleId}/${row.id}`, '_blank') } else { - this.goRoute(`/doc/copy/${this.moduleId}/${row.id}`) + // this.goRoute(`/doc/copy/${this.moduleId}/${row.id}`) + const url = `/#/doc/copy/${this.moduleId}/${row.id}` + window.open(url, '_blank') } }, onExport() { -- Gitee