## uni.addInterceptor(name, interceptor) @addinterceptor <!-- UTSAPIJSON.addInterceptor.description --> <!-- UTSAPIJSON.addInterceptor.param --> <!-- UTSAPIJSON.addInterceptor.returnValue --> <!-- UTSAPIJSON.addInterceptor.compatibility --> <!-- UTSAPIJSON.addInterceptor.tutorial --> ## uni.removeInterceptor(name, interceptor?) @removeinterceptor <!-- UTSAPIJSON.removeInterceptor.description --> <!-- UTSAPIJSON.removeInterceptor.param --> <!-- UTSAPIJSON.removeInterceptor.returnValue --> <!-- UTSAPIJSON.removeInterceptor.compatibility --> <!-- UTSAPIJSON.removeInterceptor.tutorial --> <!-- UTSAPIJSON.interceptor.example --> <!-- UTSAPIJSON.general_type.name --> <!-- UTSAPIJSON.general_type.param --> ## Bug & Tips@tips * 目前仅以下接口支持拦截器:navigateTo、redirectTo、reLaunch、switchTab、navigateBack、loadFontFace、pageScrollTo、startPullDownRefresh、setNavigationBarColor、setNavigationBarTitle、setTabBarBadge、removeTabBarBadge、setTabBarItem、setTabBarStyle、hideTabBar、showTabBar、showTabBarRedDot、hideTabBarRedDot