javascript - Add links to Vuetify tree-view - Stack Overflow

PHOTO EMBED

Sun Feb 13 2022 13:59:39 GMT+0000 (Coordinated Universal Time)

Saved by @arielvol

<template>
    <div>
        <v-treeview :items="items">
            <template slot="label" slot-scope="props">
                <router-link :to="props.item.to" v-if="props.item.to">{{ props.item.name }}</router-link>
                <span v-else>{{ props.item.name }}</span>
            </template>
        </v-treeview>
    </div>
</template>
content_copyCOPY

https://stackoverflow.com/questions/55140414/add-links-to-vuetify-tree-view