File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const title = toRef(() => item.meta?.title)
1616const icon = toRef (() => item .meta ?.icon )
1717// @ts-expect-error unknown type miss match
1818const to = computed <RouteRecordRaw >(() => ({
19- name: item .name || visibleChildren .value ?.[0 ].name ,
19+ name: item .name || visibleChildren .value ?.[0 ]? .name ,
2020}))
2121 </script >
2222
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ const theme = useTheme()
66const { store } = useColorMode ()
77const color = computed ({
88 get() {
9- return theme .themes .value .light .colors .primary
9+ return theme .themes .value .light ! .colors .primary
1010 },
1111 set(val : string ) {
1212 localStorage .setItem (' theme-primary' , val )
13- theme .themes .value .light .colors .primary = val
14- theme .themes .value .dark .colors .primary = val
13+ theme .themes .value .light ! .colors .primary = val
14+ theme .themes .value .dark ! .colors .primary = val
1515 },
1616})
1717const colors = [
Original file line number Diff line number Diff line change 1111import { useTitle } from ' @vueuse/core'
1212const route = useRoute ()
1313const title = computed (() => {
14- const title = route .meta ?.title || route .matched [0 ].meta ?.title || ' '
14+ const title = route .meta ?.title || route .matched [0 ]? .meta ?.title || ' '
1515 return title ? ` ${title } | Vitify Admin ` : ' Vitify Admin'
1616})
1717useTitle (title )
You can’t perform that action at this time.
0 commit comments