uni-app获取当前页路由
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
let curRoute = routes[routes.length – 1].route // 获取当前页面路由,也就是最后一个打开的页面路由
console.log(curRoute);
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
let curRoute = routes[routes.length – 1].route // 获取当前页面路由,也就是最后一个打开的页面路由
console.log(curRoute);