Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const navigateBack: typeof API.navigateBack = params => {
return router.go(-(params.delta || 1));
};
submitData, cb: () => {
router.go(0);
}
}
<button> router.go(-1)}>
</button>
<button> router.go(-1)}>
</button>
<button> router.go(-1)}>
</button>
return () => {
setCurIndx(curIndx + n);
router.go(n);
};
};
<button> router.go(-1)}>
</button>
<button> router.go(-1)}>
返回</button>
setTimeout(() => {
router.push({
pathname: './add',
query: {
no: this.state.no,
},
});
router.go(0);
}, 1000);
} else {