Resolved ALL eslint issues for project

This commit is contained in:
2022-08-12 23:46:55 +02:00
parent 29dfe55974
commit 3594b18872
63 changed files with 1064 additions and 800 deletions

View File

@@ -1,9 +1,9 @@
<template>
<ul class="navigation-icons">
<NavigationIcon
v-for="route in routes"
:key="route.route"
:route="route"
v-for="_route in routes"
:key="_route.route"
:route="_route"
:active="activeRoute"
/>
<slot></slot>
@@ -66,7 +66,11 @@
}
];
watch(route, () => (activeRoute.value = window?.location?.pathname));
function setActiveRoute(_route: string) {
activeRoute.value = _route;
}
watch(route, () => setActiveRoute(window?.location?.pathname || ""));
</script>
<style lang="scss" scoped>