dlt.redirectTo
Introduction
The dlt.redirectTo
function closes the current page and redirects to a specific page within the application. However, it does not allow redirection to tabbar pages.
Usage Limitations
TabBar pages are not supported for redirection.
Parameters
Object object
Property | Type | Default | Required | Description |
---|---|---|---|---|
url | string | Yes | The URL of the page to navigate to. | |
success | function | No | Callback function for a successful call. | |
fail | function | No | Callback function for a failed call. | |
complete | function | No | Callback function for the call's completion (executed for both successful and failed calls). |
Sample Code
dlt.redirectTo({
url: 'pages/index/index',
});