var pages = getCurrentPages(); // Current page
if (pages.length > 1) {  
    var beforePage = pages[pages.length - 2]; // The previous page
    beforePage.$vm.clear() //clear is the method you want to call the previous page, $vm is required
}
Copy the code

Attention!!!!!

If (pages. Length > 1) {} if (pages. Length > 1) {