Authored by ccbikai

goNewPage 全部使用标准网址

... ... @@ -99,13 +99,13 @@ const matchHeader = (url) => {
};
module.exports = (url) => {
console.log(url);
if (yoho.isApp) {
let data = {
header: matchHeader(url),
url: url
url: /^(https?:)?\/\//i.test(url) ? url : location.origin + url
};
// console.log(data);
yoho.goNewPage(data);
} else {
location.href = url;
... ...