router
This commit is contained in:
parent
5bf4b36049
commit
de899aebc8
@ -38,6 +38,7 @@
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
min-width: 1366px;
|
||||
user-select: none;
|
||||
.logo{
|
||||
width: 171px;
|
||||
height: 57px;
|
||||
@ -112,10 +113,14 @@
|
||||
</style>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
export default defineComponent({
|
||||
setup(){
|
||||
console.log(1)
|
||||
// console.log(useRoute().currentRoute.value.name)
|
||||
const routes = useRoute();
|
||||
console.log(routes.path);
|
||||
|
||||
interface Nav{
|
||||
name: string;
|
||||
route: string;
|
||||
|
Loading…
Reference in New Issue
Block a user