From 4e97711f229a6ad2fe6c3a8fe6efd63beee88dee Mon Sep 17 00:00:00 2001
From: 397921286_ <397921286@qq.com>
Date: Fri, 12 Mar 2021 11:51:43 +0800
Subject: [PATCH 1/2] =?UTF-8?q?[fix]=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB?=
=?UTF-8?q?=E8=B0=83=E8=AF=95=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=A8=A1=E5=9D=97?=
=?UTF-8?q?=E9=85=8D=E7=BD=AEID=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
front/src/views/view/index.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/front/src/views/view/index.vue b/front/src/views/view/index.vue
index 4e3fa352..45fbeb20 100644
--- a/front/src/views/view/index.vue
+++ b/front/src/views/view/index.vue
@@ -26,12 +26,14 @@ export default {
}
},
created() {
+ const projectId = this.$route.params.projectId
const docId = this.$route.params.docId
this.$nextTick(() => {
if (docId) {
this.get('/doc/view/detail', { id: docId }, function(resp) {
this.load = true
const data = resp.data
+ data.projectId = projectId
this.initDocInfo(data)
this.item = data
this.setTitle(data.name)
--
Gitee
From 42d7aa2cd2c5684d5ddf0f53926656ecffb3cb3d Mon Sep 17 00:00:00 2001
From: 397921286_ <397921286@qq.com>
Date: Fri, 12 Mar 2021 11:52:34 +0800
Subject: [PATCH 2/2] =?UTF-8?q?[fix]=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB?=
=?UTF-8?q?=E8=B0=83=E8=AF=95=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=A8=A1=E5=9D=97?=
=?UTF-8?q?=E9=85=8D=E7=BD=AEID=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
front/src/router/index.js | 2 +-
front/src/views/project/DocTable/index.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/front/src/router/index.js b/front/src/router/index.js
index 9c657ebe..3ed855b4 100644
--- a/front/src/router/index.js
+++ b/front/src/router/index.js
@@ -228,7 +228,7 @@ export const constantRoutes = [
component: () => import('@/views/view/index')
},
{
- path: ':docId(\\w+)',
+ path: ':projectId/:docId(\\w+)',
name: 'ViewDoc',
component: () => import('@/views/view/index')
}
diff --git a/front/src/views/project/DocTable/index.vue b/front/src/views/project/DocTable/index.vue
index 7af5ee82..7f026ba7 100644
--- a/front/src/views/project/DocTable/index.vue
+++ b/front/src/views/project/DocTable/index.vue
@@ -113,7 +113,7 @@