tab switch bugfix; remove floating div

This commit is contained in:
tim
2025-05-01 11:16:45 -04:00
parent 148b37dca3
commit b2457f0617
3 changed files with 20 additions and 11 deletions

View File

@@ -9,10 +9,9 @@
<script setup>
import {computed} from "vue";
import {useRoute} from "vue-router";
import {router} from "@/router/router.js";
const props = defineProps(['icon', 'route', 'tooltip', 'href', 'target'])
const router = useRoute();
const isCurrent = computed(() => router.name === props.route)
function click() {
@@ -29,7 +28,7 @@ function click() {
}
else
// noinspection JSIgnoredPromiseFromCall
router1.push({name: props.route})
router.push({name: props.route})
}
</script>