feat: 添加路由
- 添加问卷编辑路由
This commit is contained in:
@@ -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'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<van-nav-bar title="标题" left-text="" left-arrow>
|
||||
<van-nav-bar :title="($route.meta.title) as string" left-text="" left-arrow @click-left="$router.go(-1)">
|
||||
<template #right>
|
||||
<van-icon name="search" size="18" />
|
||||
</template>
|
||||
@@ -58,7 +58,7 @@
|
||||
<div style="display: flex; flex-direction: row; justify-content: space-around; width: 60%">
|
||||
<button size="small">预览</button>
|
||||
<button size="small">保存</button>
|
||||
<button size="small">投放</button>
|
||||
<button size="small" @click="$router.push('/publish')">投放</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<van-nav-bar title="问卷投放" left-text="" left-arrow>
|
||||
<van-nav-bar :title="($route.meta.title) as string" left-text="" left-arrow @click-left="$router.go(-1)">
|
||||
<template #right>
|
||||
<van-icon name="search" size="18" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user