mounted() { let pages = getCurrentPages(); //获取路由参数 let curPage = pages[pages.length - 1];let 变量名 = curPage.options["参数名"] },