提交 46d418ce 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

types(interceptor): 修复类型错误

上级 959692de
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
complete: function (res : NavigateToComplete) { complete: function (res : NavigateToComplete) {
console.log('拦截 navigateTo 接口 complete 返回参数为:', res) console.log('拦截 navigateTo 接口 complete 返回参数为:', res)
} }
} as Interceptor } as AddInterceptorOptions
const switchTabInterceptor = { const switchTabInterceptor = {
invoke: function (options : SwitchTabOptions) { invoke: function (options : SwitchTabOptions) {
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
complete: function (res : SwitchTabComplete) { complete: function (res : SwitchTabComplete) {
console.log('拦截 switchTab 接口 complete 返回参数为:', res) console.log('拦截 switchTab 接口 complete 返回参数为:', res)
} }
} as Interceptor } as AddInterceptorOptions
export default { export default {
data() { data() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册