[Vuejs]-How to click user and view the user data?

0👍

I recommend that you try with a router push initially.
Hence please use

<script>
export default {
    methods: {
        view(id) {
            this.$router.push({ path: `/finance/pay-doctors/${item.id}` })
        }
    }
}
</script>

Make sure that your router is properly set + that you have the proper state thanks to your Vue devtools.

Also, be sure to have something to fetch the user’s data on DoctorDetails.

Leave a comment