All checks were successful
test/timeline-frontend/pipeline/head This commit looks good
refactor: 重构类型定义和组件结构 fix: 修复通知和权限判断逻辑 style: 优化样式和布局 docs: 更新类型注释和文档 chore: 清理无用代码和文件 perf: 优化图片和视频加载性能 test: 添加分享功能测试用例 build: 更新依赖和构建配置 ci: 调整CI配置和脚本
109 lines
1.9 KiB
TypeScript
109 lines
1.9 KiB
TypeScript
export default [
|
|
{
|
|
path: '/user',
|
|
layout: false,
|
|
routes: [
|
|
{
|
|
path: '/user/login',
|
|
layout: false,
|
|
name: 'login',
|
|
component: './user/login',
|
|
},
|
|
{
|
|
path: '/user',
|
|
redirect: '/user/login',
|
|
},
|
|
{
|
|
name: 'register-result',
|
|
icon: 'smile',
|
|
path: '/user/register-result',
|
|
component: './user/register-result',
|
|
},
|
|
{
|
|
name: 'register',
|
|
icon: 'smile',
|
|
path: '/user/register',
|
|
component: './user/register',
|
|
},
|
|
{
|
|
component: '404',
|
|
path: '/user',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'home',
|
|
icon: 'home',
|
|
path: '/home',
|
|
component: './home',
|
|
},
|
|
{
|
|
name: 'stories',
|
|
icon: 'smile',
|
|
path: '/story',
|
|
component: './story',
|
|
},
|
|
{
|
|
name: 'gallery',
|
|
icon: 'smile',
|
|
path: '/gallery',
|
|
component: './gallery',
|
|
},
|
|
{
|
|
name: 'review',
|
|
icon: 'calendar',
|
|
path: '/review',
|
|
component: './review',
|
|
},
|
|
{
|
|
name: 'archive',
|
|
icon: 'compass',
|
|
path: '/archive',
|
|
component: './archive',
|
|
},
|
|
{
|
|
name: 'collections',
|
|
icon: 'appstore',
|
|
path: '/collections',
|
|
component: './collections',
|
|
},
|
|
{
|
|
path: '/collections/:id',
|
|
component: './collections/[id]',
|
|
},
|
|
{
|
|
path: '/timeline/:id',
|
|
component: './story/detail',
|
|
},
|
|
{
|
|
name: 'account',
|
|
icon: 'user',
|
|
path: '/account',
|
|
component: './account/center',
|
|
},
|
|
{
|
|
name: 'settings',
|
|
icon: 'setting',
|
|
path: '/account/settings',
|
|
component: './account/settings',
|
|
},
|
|
{
|
|
path: '/share/studio/:storyId',
|
|
component: './share/studio/[storyId]',
|
|
},
|
|
{
|
|
path: '/share/preview/:storyId',
|
|
layout: false,
|
|
component: './share/preview/[storyId]',
|
|
},
|
|
{
|
|
path: '/share/:shareId',
|
|
layout: false,
|
|
auth: false,
|
|
component: './share/[shareId]',
|
|
},
|
|
{
|
|
path: '/',
|
|
redirect: '/home',
|
|
},
|
|
]; |