![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
Pee Wee
代码是诗,Bug是韵律,调试是探险,编程是艺术。
个人博客地址:http://he-bi.cn/blog_web
展开
-
Vue父子组件通讯
这是因为vue项目多数使用各种第三方UI组件,例如 vuetify、element-ui、IView 等组件,导致一层的.$parent 没有到我们所看到的父级组件,而是在第三方组件中,所以解决办法是添加多层.$parent。"TypeError: this.$parent.getFatherMethed is not a function" 方法未定义。解决:写成this.$parent.$parent.$parent.getFatherMethed()可以正常调用。原创 2023-11-08 14:56:36 · 162 阅读 · 1 评论 -
Vue路由跳转几种参数传递方式
跳转到指定url路径,但是history栈中不会有记录,点击返回会跳转到上上个页面 (就是直接替换了当前页面)跳转到指定url路径,并想history栈中添加一个记录,点击后退会返回到上一个页面。向前或者向后跳转n个页面,n可为正整数或负整数。原创 2023-11-08 14:53:53 · 209 阅读 · 1 评论