add basic vite setup
This commit is contained in:
10
demos/preview/index.vue
Normal file
10
demos/preview/index.vue
Normal file
@@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<ul v-if="$route.path === '/'">
|
||||
<li v-for="route in $router.options.routes" :key="route.path">
|
||||
<router-link :to="route.path">
|
||||
{{ route.path }}
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
<router-view v-else />
|
||||
</template>
|
||||
Reference in New Issue
Block a user