README.md 项目说明
This commit is contained in:
15
README.md
15
README.md
@@ -1,4 +1,4 @@
|
||||
# planet-front-end
|
||||
# ylst-survey-web
|
||||
|
||||
## Project setup
|
||||
|
||||
@@ -32,3 +32,16 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
<div v-html="logic" v-for="logic in question.logic" :key="logic"></div>
|
||||
</div>
|
||||
```
|
||||
|
||||
# 添加新页面流程
|
||||
- 将新页面路由添加至 ./src/router/index.js
|
||||
- 新页面文件放置在 ./src/views 对应模块内
|
||||
|
||||
## 路由内 meta 信息说明
|
||||
- title: 页面标题
|
||||
- showPreview: 问卷设计是否显示预览问卷按钮
|
||||
- showPublish: 问卷设计是否显示发布问卷按钮
|
||||
- showDownload: 问卷设计是否显示下载中心按钮
|
||||
- showShare: 问卷设计是否显示分享按钮,将问卷分享给其它用户
|
||||
- keepAlive: 是否页面使用 keepAlive 缓存
|
||||
- shared: 是否页面为分享功能页面,不需要登录即可访问
|
||||
|
||||
@@ -29,7 +29,7 @@ const constantRoutes = [
|
||||
{
|
||||
path: '/:catchAll(.*)',
|
||||
redirect: '/error/404',
|
||||
meta: { noRedirectLogin: true }
|
||||
meta: { noRedirectLogin: true } // noRedirectLogin:无用可删
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
|
||||
Reference in New Issue
Block a user