From 111de7665ba3d12e99e64dfa0a8fe19640211766 Mon Sep 17 00:00:00 2001 From: Huangzhe Date: Fri, 7 Mar 2025 14:46:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加问卷编辑路由 --- src/layouts/index.vue | 2 +- src/router/index.ts | 10 ++++++++++ src/views/Survey/views/Create/Index.vue | 4 ++-- src/views/Survey/views/Publish/Index.vue | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 7c0d3a6..d6b1479 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -39,7 +39,7 @@ const table = [ }, { title: '新建问卷', - path: '/survey/create', + path: '/create', icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/首页_1/u15.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6' }, { diff --git a/src/router/index.ts b/src/router/index.ts index 859375b..521aa1d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -51,6 +51,16 @@ const router = createRouter({ name: 'preview', meta: {}, component: Preview + }, { + path: '/create', + name: 'create', + meta: { title: '问卷编辑' }, + component: () => import('../views/Survey/views/Create/Index.vue') + },{ + path: '/publish', + name: 'publish', + meta: { title: '问卷发布' }, + component: () => import('../views/Survey/views/Publish/Index.vue') } ] }); diff --git a/src/views/Survey/views/Create/Index.vue b/src/views/Survey/views/Create/Index.vue index 5133bce..9b28e37 100644 --- a/src/views/Survey/views/Create/Index.vue +++ b/src/views/Survey/views/Create/Index.vue @@ -1,6 +1,6 @@