intercept-click.js 321 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 /** * 拦截跳转, 在这里给将要打开的页面设置一下 header 样式 * @return {[type]} */ const yoho = require('yoho'); module.exports = (url) => { console.log(url); if (yoho.isApp) { yoho.goNewPage({ url: url }); } else { // location.href = url; } };