This commit is contained in:
Gaoxs
2020-09-15 15:57:25 +08:00
parent 3b6dc0faee
commit 61f6b4c385
2 changed files with 0 additions and 20 deletions

View File

@ -92,11 +92,7 @@ export function parseQuery() {
// #ifdef H5
<<<<<<< HEAD
const res = {};
=======
let res = {};
>>>>>>> cd4be74b4e66d2c142be343c65dc2de48ad97bd8
const query = (location.href.split("?")[1] || "")
.trim()
@ -120,20 +116,8 @@ export function parseQuery() {
}
});
// #endif
<<<<<<< HEAD
=======
>>>>>>> cd4be74b4e66d2c142be343c65dc2de48ad97bd8
// #ifdef MP-WEIXIN
var pages = getCurrentPages() //获取加载的页面
var currentPage = pages[pages.length - 1] //获取当前页面的对象
var url = currentPage.route //当前页面url
<<<<<<< HEAD
var res = currentPage.options //如果要获取url中所带的参数可以查看options
=======
res = currentPage.options //如果要获取url中所带的参数可以查看options
>>>>>>> cd4be74b4e66d2c142be343c65dc2de48ad97bd8
// #endif
return res