提交 480fd1f5 编写于 作者: Q qiang

fix: 更新拦截器示例,页面销毁时移除拦截器

上级 39c7e128
......@@ -29,6 +29,10 @@
}
},
beforeUnmount() {
// 移除 navigateTo 所有拦截器
uni.removeInterceptor('navigateTo')
},
methods: {
addInterceptor() {
uni.addInterceptor('navigateTo', interceptor)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册