Parameters
Code Example
Related APIs
my.navigateToMiniProgram
Navigate to Mini Program
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Return to the previous Mini Program.
| Property | Type | Required | Description |
|---|---|---|---|
| extraData | Object | No | Data to pass back to the previous Mini Program, accessible via App.onLaunch() or App.onShow() |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
my.navigateBackMiniProgram({
extraData: {
result: 'completed',
orderId: '12345'
},
success: () => {
console.log('Returned to previous Mini Program');
}
});