From e5a030dd33caa5171ac158271c49363941fae7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=99=E5=85=89?= <5248283+lsg15829561090@user.noreply.gitee.com> Date: Sun, 29 Sep 2024 21:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes.ts | 13 ++- src/views/forum/ForumPublish.vue | 83 ++++++++++++++++ src/views/forum/ForumView.vue | 157 +++++++++++++++++++++++++++++++ 3 files changed, 250 insertions(+), 3 deletions(-) create mode 100644 src/views/forum/ForumPublish.vue create mode 100644 src/views/forum/ForumView.vue diff --git a/src/router/routes.ts b/src/router/routes.ts index 1c40ba7..8950d82 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -115,13 +115,13 @@ export const routes: Array = [ icon:IconComputer }, },{ - path: "/history/question/", + path: "/forum/index/", name: "交流论坛", - component: () => import("../views/question/SubmitQuestion.vue"), + component: () => import("../views/forum/ForumView.vue"), meta: { hidden: false, access: ACCESS_ENMU.NOT_LOGIN, - meta:IconUserGroup + icon:IconUserGroup }, }, { @@ -145,6 +145,13 @@ export const routes: Array = [ meta:{ hidden: true, } + },{ + path: "/forum/publish", + name: "发布帖子", + component: () => import("../views/forum/ForumPublish.vue"), + meta:{ + hidden: true, + } }, ] } diff --git a/src/views/forum/ForumPublish.vue b/src/views/forum/ForumPublish.vue new file mode 100644 index 0000000..5833229 --- /dev/null +++ b/src/views/forum/ForumPublish.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/src/views/forum/ForumView.vue b/src/views/forum/ForumView.vue new file mode 100644 index 0000000..c2f6de1 --- /dev/null +++ b/src/views/forum/ForumView.vue @@ -0,0 +1,157 @@ + + + + +