Feat: Bind event to the theme Switch #3221 (#4067)

### 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:
balibabu
2024-12-17 16:32:17 +08:00
committed by GitHub
parent 000cd6d615
commit e8b4e8b3d7
7 changed files with 73 additions and 98 deletions

View File

@ -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`,
},
],
},