首页 > 移动平台 > 详细

护工手机端页面总结

时间:2018-03-26 17:44:37      阅读:197      评论:0      收藏:0      [点我收藏+]

this.$route.query或者 this.$route.params接收router-link传的参数

有个方法就是在script标签里面写this.$router.push(‘要跳转的路径名‘),

 

 

关于导入组件,组件跳转,和组件显示

组件:(关注点:showtabbar,footer-tabbar,FooterTabbar)

app.vue

<footer-tabbar v-show="$route.meta.showtabbar"></footer-tabbar>
 
<script>
import FooterTabbar from ‘./components/FooterTabbar‘
export default {
name: ‘app‘,
components: {
FooterTabbar
}
}
</script>
 
 
index.js
{
path: ‘/Home‘,
name: ‘Home‘,
component: Home,
meta: { showtabbar: true }
},

护工手机端页面总结

原文:https://www.cnblogs.com/jiye123/p/8652390.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!