2025-07-22 22:52:55 +08:00
|
|
|
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',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-03-16 19:30:45 +08:00
|
|
|
name: 'home',
|
|
|
|
|
icon: 'home',
|
|
|
|
|
path: '/home',
|
|
|
|
|
component: './home',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'stories',
|
2025-07-22 22:52:55 +08:00
|
|
|
icon: 'smile',
|
2025-08-05 19:02:14 +08:00
|
|
|
path: '/story',
|
|
|
|
|
component: './story',
|
2025-07-22 22:52:55 +08:00
|
|
|
},
|
2025-08-04 16:56:39 +08:00
|
|
|
{
|
2026-03-16 19:30:45 +08:00
|
|
|
name: 'gallery',
|
2025-08-04 16:56:39 +08:00
|
|
|
icon: 'smile',
|
|
|
|
|
path: '/gallery',
|
|
|
|
|
component: './gallery',
|
|
|
|
|
},
|
2026-03-16 19:30:45 +08:00
|
|
|
{
|
|
|
|
|
name: 'review',
|
|
|
|
|
icon: 'calendar',
|
|
|
|
|
path: '/review',
|
|
|
|
|
component: './review',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'archive',
|
|
|
|
|
icon: 'compass',
|
|
|
|
|
path: '/archive',
|
|
|
|
|
component: './archive',
|
|
|
|
|
},
|
2026-02-25 15:02:05 +08:00
|
|
|
{
|
|
|
|
|
name: 'collections',
|
|
|
|
|
icon: 'appstore',
|
|
|
|
|
path: '/collections',
|
|
|
|
|
component: './collections',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/collections/:id',
|
|
|
|
|
component: './collections/[id]',
|
|
|
|
|
},
|
2025-07-22 22:52:55 +08:00
|
|
|
{
|
|
|
|
|
path: '/timeline/:id',
|
2025-08-05 19:02:14 +08:00
|
|
|
component: './story/detail',
|
2025-07-22 22:52:55 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-03-16 19:30:45 +08:00
|
|
|
name: 'account',
|
2025-12-26 15:12:49 +08:00
|
|
|
icon: 'user',
|
|
|
|
|
path: '/account',
|
|
|
|
|
component: './account/center',
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-03-16 19:30:45 +08:00
|
|
|
name: 'settings',
|
2025-12-26 15:12:49 +08:00
|
|
|
icon: 'setting',
|
|
|
|
|
path: '/account/settings',
|
|
|
|
|
component: './account/settings',
|
|
|
|
|
},
|
2026-03-16 19:30:45 +08:00
|
|
|
{
|
|
|
|
|
path: '/share/studio/:storyId',
|
|
|
|
|
component: './share/studio/[storyId]',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/share/preview/:storyId',
|
|
|
|
|
layout: false,
|
|
|
|
|
component: './share/preview/[storyId]',
|
|
|
|
|
},
|
2026-02-12 16:55:05 +08:00
|
|
|
{
|
|
|
|
|
path: '/share/:shareId',
|
|
|
|
|
layout: false,
|
|
|
|
|
auth: false,
|
|
|
|
|
component: './share/[shareId]',
|
|
|
|
|
},
|
2025-12-26 15:12:49 +08:00
|
|
|
{
|
|
|
|
|
path: '/',
|
2026-03-16 19:30:45 +08:00
|
|
|
redirect: '/home',
|
2025-12-26 15:12:49 +08:00
|
|
|
},
|
2026-03-16 19:30:45 +08:00
|
|
|
];
|