Uniapp: Get Current Page Guide
In uni-app, you can use the uni.getNowPage() method to get the current page’s information. This method will return an object containing the configuration of the current page. Here is an example code:
const nowPage = uni.getNowPage();
console.log(nowPage);
By using the above code, you can access the current page’s configuration object and perform necessary operations accordingly.