提交 ff7f6c2a authored 作者: 吴旭健1's avatar 吴旭健1

分支

上级 06756ea2
...@@ -12,15 +12,15 @@ const routes = [ ...@@ -12,15 +12,15 @@ const routes = [
redirect: '/Home', redirect: '/Home',
children: [ children: [
{ {
path: '/home', path: '/Home',
name: 'home', name: 'Home',
// route level code-splitting // route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route // this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited. // which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue') component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue')
}, { }, {
path: '/about', path: '/About',
name: 'about', name: 'About',
// route level code-splitting // route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route // this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited. // which is lazy-loaded when the route is visited.
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'Home',
data () { data () {
return { return {
dataGet: '' dataGet: ''
...@@ -31,5 +32,5 @@ ...@@ -31,5 +32,5 @@
}, },
watch: { watch: {
} }
} }
</script> </script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论