From 30468e619931ebfd696fcadb287ec2d2569c213b Mon Sep 17 00:00:00 2001 From: hanshaozhuang Date: Wed, 13 Jul 2022 16:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=2056147=20=E9=97=AE?= =?UTF-8?q?=E7=AD=94=E6=A8=A1=E5=9D=97=E4=B8=AD=E7=9A=84=E7=9B=B8=E4=BC=BC?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/questionDetail.vue | 76 +++++++++++++++++++ .../personal/pages/my-questions/index.vue | 24 +++--- src/router/index.js | 10 +++ 3 files changed, 101 insertions(+), 9 deletions(-) create mode 100644 src/pages/personal/pages/my-questions/components/questionDetail.vue diff --git a/src/pages/personal/pages/my-questions/components/questionDetail.vue b/src/pages/personal/pages/my-questions/components/questionDetail.vue new file mode 100644 index 000000000..973f33b00 --- /dev/null +++ b/src/pages/personal/pages/my-questions/components/questionDetail.vue @@ -0,0 +1,76 @@ + + + + + + diff --git a/src/pages/personal/pages/my-questions/index.vue b/src/pages/personal/pages/my-questions/index.vue index e24339956..b842f62d6 100644 --- a/src/pages/personal/pages/my-questions/index.vue +++ b/src/pages/personal/pages/my-questions/index.vue @@ -1399,16 +1399,22 @@ export default { //点击跳转问题详情 historyJump(item){ this.$router.push({ - path: '/standQA', - query:{ - standId: item.standardId, - queId: item.id, - standType: item.classification, - sourceType: 'dialog', - standName: item.standardName, + path: "/questionDetail", + query: { + id: item.id } - }) - this.dialogVisible = false + }); + // this.$router.push({ + // path: '/standQA', + // query:{ + // standId: item.standardId, + // queId: item.id, + // standType: item.classification, + // sourceType: 'dialog', + // standName: item.standardName, + // } + // }) + // this.dialogVisible = false }, // 点击查看 handlePreview(item) { diff --git a/src/router/index.js b/src/router/index.js index aa922feaf..3d9ee3cac 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -323,6 +323,16 @@ const routes = [ menuId: '' } }, + { + path: '/questionDetail', + name: 'QuestionDetail', + component: resolve => require(['@/pages/personal/pages/my-questions/components/questionDetail.vue'], resolve), + meta: { + requireAuth: true, + title: '问题详情', + menuId: '' + } + } // { // path: '/questionsAndAnswers', // name: 'QuestionsAndAnswers',