Browse Source

修改util编译错误的问题

master
Gaoxs 5 years ago
parent
commit
1286ede581
  1. 2
      utils/index.js

2
utils/index.js

@ -117,6 +117,8 @@ export function parseQuery() {
}); });
// #endif // #endif
// #ifndef H5 // #ifndef H5
var pages = getCurrentPages() //获取加载的页面
var currentPage = pages[pages.length - 1] //获取当前页面的对象
var url = currentPage.route //当前页面url var url = currentPage.route //当前页面url
res = currentPage.options //如果要获取url中所带的参数可以查看options res = currentPage.options //如果要获取url中所带的参数可以查看options
// #endif // #endif

Loading…
Cancel
Save