router.js

{path: 'index/edit', component: PageEdit, props: true}

 

PageEdit.vue

<template>
edit ({{route.params.index}}
</template>
 
<script setup>
import {useRoute} from 'vue-router';
const route = useRoute();
</script>

 

1GNsWa_EZdw