// 解决element-UI的th不对齐table体
.el-table th.gutter {
display: table-cell !important;
}
《Vue源码》学习https://blog.csdn.net/qq_46299172/article/details/107609251
《webpack开发配置API代理解决跨域问题-devServer》https://segmentfault.com/a/1190000016199721?utm_source=tag-newest
《vue proxyTable中跨域中pathRewrite配置》https://blog.csdn.net/yunfeng482/article/details/89883970
https://zhuanlan.zhihu.com/p/140428681
https://zhuanlan.zhihu.com/p/26724001
mounted回调里是无法直接通过this.$refs获取到用ref命名的子组件的,只有nextTick才能访问到
“我的理解是nextticket等价于队列,真正意义上setTimeout(,0)”
setTimeout是macrotask,nextTick是优先microtask,无解再macrotask
params和name一起用
this.$router.push({
name: 'okPage',
params: {
ok: '111222333'
},
})
三元运算符
:style="{ display: isMakeSureHere ? 'inline-block' : 'none' }"
传值
- 不同的路由,子组件的内容表现不一样,看看是不是父组件传值的时候this指向给子组件的问题