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