HomeDocs
Skip to main content

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​

PropertyTypeDefaultRequiredDescription
urlstringYesThe URL of the page to navigate to.
successfunctionNoCallback function for a successful call.
failfunctionNoCallback function for a failed call.
completefunctionNoCallback function for the call's completion (executed for both successful and failed calls).

Sample Code​

dlt.redirectTo({
url: 'pages/index/index',
});
Privacy agreementDeveloper agreementcontact us: developer_private.mi@dlightek.com © 2024 MiniApp. All Rights Reserved.