...
|
...
|
@@ -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;
|
...
|
...
|
|