提交 1258a7a5 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(interceptor): 修复类型错误

上级 d7fb76f9
<template> <template>
<view style="flex: 1;"> <view style="flex: 1">
<button @click="addInterceptor">添加路由拦截器</button> <button @click="addInterceptor">添加路由拦截器</button>
<button @click="removeInterceptor">移除路由拦截器</button> <button @click="removeInterceptor">移除路由拦截器</button>
<text>点击下方按钮{{msg}}</text> <text>点击下方按钮{{ msg }}</text>
<button @click="navigateTo">navigatorTo API跳转到测试页面</button> <button @click="navigateTo">navigatorTo API跳转到测试页面</button>
<navigator url="./page1"><button class="navigatorButton">navigator组件跳转到测试页面</button></navigator> <navigator url="./page1"><button class="navigatorButton">
navigator组件跳转到测试页面
</button></navigator>
</view> </view>
</template> </template>
...@@ -18,7 +20,7 @@ ...@@ -18,7 +20,7 @@
}) })
options.url = url options.url = url
}, },
success: function (res : NavigateBackSuccess) { success: function (res : NavigateToSuccess) {
console.log('拦截 navigateTo 接口 success 返回参数为:', res) console.log('拦截 navigateTo 接口 success 返回参数为:', res)
}, },
fail: function (err : NavigateToFail) { fail: function (err : NavigateToFail) {
...@@ -69,8 +71,4 @@ ...@@ -69,8 +71,4 @@
} }
} }
} }
</script> </script>
<style>
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册