Skip to content

Commit

Permalink
doc: update spa example to add route links
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed May 18, 2021
1 parent db4f2cd commit 70a3d04
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
21 changes: 21 additions & 0 deletions examples/vue/src/features/dashboard/pages/dashboard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<p>/features/dashboard/dashboard.vue</p>
<p>located in features /features/dashboard/pages folder</p>
</template>

<script>
export default {
}
</script>

<style>
</style>
<route>
{
meta: {
requiresAuth: true
}
}
</route>
2 changes: 1 addition & 1 deletion examples/vue/src/features/dashboard/pages/welcome.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<p>/features/dashboard/welcome.vue</p>
<p>/features/dashboard/dashboard.vue</p>
<p>located in features /features/dashboard/pages folder</p>
</template>

Expand Down
6 changes: 6 additions & 0 deletions examples/vue/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
</router-link> |
<router-link to="/xxx">
not exits
</router-link> |
<router-link to="/features/dashboard">
dashboard
</router-link> |
<router-link to="/admin">
admin
</router-link>
</div>
</template>
Expand Down

0 comments on commit 70a3d04

Please sign in to comment.