|
@@ -47,14 +47,16 @@ export default defineComponent({
|
|
|
},
|
|
|
watch: {
|
|
|
$route(res: any) {
|
|
|
+ // console.log(res)
|
|
|
+ this.isdark = !!res.meta.isdark
|
|
|
this.navigator.forEach((item: any) => {
|
|
|
item.current = false
|
|
|
})
|
|
|
this.navigator.forEach((item: any) => {
|
|
|
if (item.href === res.meta.highlightPath) {
|
|
|
item.current = true
|
|
|
- this.isdark = !!res.meta.isdark
|
|
|
- console.log(this.isdark)
|
|
|
+ // this.isdark = !!res.meta.isdark
|
|
|
+ // console.log(this.isdark)
|
|
|
}
|
|
|
})
|
|
|
}
|