|
|
@@ -73,12 +73,12 @@ nav a:first-of-type {
|
|
|
import {loadDynamicPages} from '@/router'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
import { useRoute } from 'vue-router'
|
|
|
+import type { FooterLink } from '@/types/footer-link'
|
|
|
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
- links: [] as Array<any>,
|
|
|
- error: null as any,
|
|
|
+ links: [] as Array<FooterLink>,
|
|
|
}
|
|
|
},
|
|
|
setup(){
|
|
|
@@ -105,15 +105,14 @@ nav a:first-of-type {
|
|
|
await useTimelineStore().setLocale(locale)
|
|
|
await useComponentStore().setLocale(locale)
|
|
|
loadDynamicPages(pageStore.pages)
|
|
|
- const oldLink = this.footerLinksStroe.getLinkByLabel(this.route.name as string) as any
|
|
|
+ const oldLink = this.footerLinksStroe.getLinkByLabel(this.route.name as string) as FooterLink
|
|
|
this.links = await this.footerLinksStroe.getLinks(locale)
|
|
|
if(oldLink){
|
|
|
- const newLink = this.footerLinksStroe.getLinkByLabel(oldLink.localizations[0].Label) as any
|
|
|
+ const newLink = this.footerLinksStroe.getLinkByLabel(oldLink.localizations[0].Label) as FooterLink
|
|
|
setTimeout(() => {this.$router.push(newLink.page.path)}, 100)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
</script>
|
|
|
|