tab switch bugfix; remove floating div
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user