Skip to content

Commit

Permalink
修复:组件会全部加载
Browse files Browse the repository at this point in the history
	modified:   ui/src/App.vue
	renamed:    ui/src/pages/AdvancedLeft.vue -> ui/src/pages/allsetting.vue
	modified:   ui/src/router.js
  • Loading branch information
fuyn101 committed Sep 20, 2023
1 parent 782226f commit 6296bcb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
20 changes: 10 additions & 10 deletions ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const menuOptions = computed(() => [
label: () =>
h(
RouterLink,
{ to: { path: '/advancedleft/mower-setting' } },
{ to: { path: '/setting/mower-setting' } },
{ default: () => '基本设置' }
),
key: 'go-to-mowersetting',
Expand All @@ -92,7 +92,7 @@ const menuOptions = computed(() => [
label: () =>
h(
RouterLink,
{ to: { path: '/advancedleft/basement-setting' } },
{ to: { path: '/setting/basement-setting' } },
{ default: () => '基建设置' }
),
key: 'go-to-basementsetting',
Expand All @@ -101,15 +101,15 @@ const menuOptions = computed(() => [
{
label: () =>
h(RouterLink, { to: { path: '/advancedleft/email' } }, { default: () => '邮件设置' }),
h(RouterLink, { to: { path: '/setting/email' } }, { default: () => '邮件设置' }),
key: 'go-to-email',
icon: renderIcon(MailOpen)
},
{
label: () =>
h(
RouterLink,
{ to: { path: '/advancedleft/recruit' } },
{ to: { path: '/setting/recruit' } },
{ default: () => '公开招募' }
),
key: 'go-to-recruit',
Expand All @@ -126,7 +126,7 @@ const menuOptions = computed(() => [
label: () =>
h(
RouterLink,
{ to: { path: '/advancedleft/maa-basic' } },
{ to: { path: '/setting/maa-basic' } },
{ default: () => '连接设置' }
),
icon: renderIcon(Settings),
Expand All @@ -136,7 +136,7 @@ const menuOptions = computed(() => [
label: () =>
h(
RouterLink,
{ to: { path: '/advancedleft/maa-weekly' } },
{ to: { path: '/setting/maa-weekly' } },
{ default: () => '清理智' }
),
key: 'go-to-maaweekly',
Expand All @@ -146,7 +146,7 @@ const menuOptions = computed(() => [
label: () =>
h(
RouterLink,
{ to: { path: '/advancedleft/clue' } },
{ to: { path: '/setting/clue' } },
{ default: () => '线索/信用商店' }
),
key: 'go-to-clue',
Expand All @@ -156,20 +156,20 @@ const menuOptions = computed(() => [
label: () =>
h(
RouterLink,
{ to: { path: '/advancedleft/maahugmission' } },
{ to: { path: '/setting/maahugmission' } },
{ default: () => '肉鸽等' }
),
key: 'go-to-maahugmission',
icon: renderIcon(DiceD20)
}
]
}
//{ label: () => h(RouterLink, { to: { path: "/advancedleft/sk-land" } }, { default: () => "森空岛签到" }), key: "go-to-skland" },
//{ label: () => h(RouterLink, { to: { path: "/setting/sk-land" } }, { default: () => "森空岛签到" }), key: "go-to-skland" },
]
},
{
label: () =>
h(RouterLink, { to: { path: '/advancedleft' } }, { default: () => '全部设置' }),
h(RouterLink, { to: { path: '/setting/allsetting' } }, { default: () => '全部设置' }),
icon: renderIcon(Settings),
show: mobilemode.value,
key: 'go-to-allsetting'
Expand Down
File renamed without changes.
12 changes: 8 additions & 4 deletions ui/src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ const routes = [
name: 'plan'
},
{
path: '/advancedleft',
component: () => import('@/pages/AdvancedLeft.vue'),
meta: { title: 'Advanced Left Page' },
name: 'advancedleft',
path: '/setting',
meta: { title: '设置' },
children: [
{
path: 'allsetting',
component: () => import('@/pages/allsetting.vue'),
meta: { title: '全部设置' },
name: 'allsetting'
},
{
path: 'mower-setting',
component: () => import('@/components/MowerSettings.vue'),
Expand Down

0 comments on commit 6296bcb

Please sign in to comment.