mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Bind event to the theme Switch #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -7,6 +7,7 @@ export enum Routes {
|
||||
Agent = '/agent',
|
||||
Search = '/next-search',
|
||||
Chat = '/next-chat',
|
||||
ProfileSetting = '/profile-setting',
|
||||
}
|
||||
|
||||
const routes = [
|
||||
@ -136,11 +137,6 @@ const routes = [
|
||||
component: '@/pages/404',
|
||||
layout: false,
|
||||
},
|
||||
{
|
||||
path: '/demo',
|
||||
component: '@/pages/demo',
|
||||
layout: false,
|
||||
},
|
||||
{
|
||||
path: Routes.Home,
|
||||
layout: false,
|
||||
@ -223,30 +219,33 @@ const routes = [
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/profile-setting',
|
||||
path: Routes.ProfileSetting,
|
||||
layout: false,
|
||||
component: '@/pages/profile-setting',
|
||||
component: `@/pages${Routes.ProfileSetting}`,
|
||||
routes: [
|
||||
{ path: '/profile-setting', redirect: '/profile-setting/profile' },
|
||||
{
|
||||
path: '/profile-setting/profile',
|
||||
component: '@/pages/profile-setting/profile',
|
||||
path: Routes.ProfileSetting,
|
||||
redirect: `${Routes.ProfileSetting}/profile`,
|
||||
},
|
||||
{
|
||||
path: '/profile-setting/team',
|
||||
component: '@/pages/profile-setting/team',
|
||||
path: `${Routes.ProfileSetting}/profile`,
|
||||
component: `@/pages${Routes.ProfileSetting}/profile`,
|
||||
},
|
||||
{
|
||||
path: '/profile-setting/plan',
|
||||
component: '@/pages/profile-setting/plan',
|
||||
path: `${Routes.ProfileSetting}/team`,
|
||||
component: `@/pages${Routes.ProfileSetting}/team`,
|
||||
},
|
||||
{
|
||||
path: '/profile-setting/model',
|
||||
component: '@/pages/profile-setting/model',
|
||||
path: `${Routes.ProfileSetting}/plan`,
|
||||
component: `@/pages${Routes.ProfileSetting}/plan`,
|
||||
},
|
||||
{
|
||||
path: '/profile-setting/prompt',
|
||||
component: '@/pages/profile-setting/prompt',
|
||||
path: `${Routes.ProfileSetting}/model`,
|
||||
component: `@/pages${Routes.ProfileSetting}/model`,
|
||||
},
|
||||
{
|
||||
path: `${Routes.ProfileSetting}/prompt`,
|
||||
component: `@/pages${Routes.ProfileSetting}/prompt`,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user