![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
monster_胖丁
这个作者很懒,什么都没留下…
展开
-
vue router:解决相同路径不同路由参数跳转同一页面,路由参数不动态刷新的问题
问题描述 当我们使用同一路径跳转不同页面时,路由参数不会刷新,所以组件中接收不到,比如我的路由定义如下:采用 watch 监听 1. 在跳转的组件中使用watch进行检测动态改变路由参数:watch: { // 利用watch方法检测路由变化: $route: function(to, from) { if原创 2021-06-16 17:58:37 · 4420 阅读 · 0 评论 -
vue_shop删除功能报错——_this3.$confirm(...).cath is not a function
报错提示报错代码在有删除功能的提示框中都会有这样的报错: const confirmResult = await this.$confirm( '此操作将删除xx, 是否继续?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' } ).cath(err =&原创 2021-05-20 10:07:04 · 370 阅读 · 0 评论