init Rate component
init Rate component
This commit is contained in:
parent
1ff551864c
commit
49d380cf99
9 changed files with 193 additions and 1 deletions
|
@ -47,6 +47,7 @@ li + li {
|
|||
<li><a v-link="'/menu'">Menu</a></li>
|
||||
<li><a v-link="'/date'">Date</a></li>
|
||||
<li><a v-link="'/form'">Form</a></li>
|
||||
<li><a v-link="'/rate'">Rate</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<router-view></router-view>
|
||||
|
|
|
@ -134,6 +134,11 @@ router.map({
|
|||
require(['./routers/form.vue'], resolve);
|
||||
}
|
||||
},
|
||||
'/rate': {
|
||||
component: function (resolve) {
|
||||
require(['./routers/rate.vue'], resolve);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
router.beforeEach(function () {
|
||||
|
|
15
test/routers/rate.vue
Normal file
15
test/routers/rate.vue
Normal file
|
@ -0,0 +1,15 @@
|
|||
<template>
|
||||
<div style="margin: 100px">
|
||||
<Rate></Rate>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {};
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue