提交 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,31 +5,32 @@ ...@@ -5,31 +5,32 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data () { name: 'Home',
return { data () {
dataGet: '' return {
} dataGet: ''
},
created() {
},
mounted(){
},
methods: {
// 测试数据接口
ceGet() {
console.log('你好数据');
this.$server.getCeShi().then(res => {
console.log(res);
}).catch(err => {
console.log(err);
this.$message.error('数据请求失败');
})
}
},
components: {
},
watch: {
} }
},
created() {
},
mounted(){
},
methods: {
// 测试数据接口
ceGet() {
console.log('你好数据');
this.$server.getCeShi().then(res => {
console.log(res);
}).catch(err => {
console.log(err);
this.$message.error('数据请求失败');
})
}
},
components: {
},
watch: {
} }
}
</script> </script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论