...
|
...
|
@@ -18,9 +18,11 @@ const $ = require('yoho-jquery'); |
|
|
const interceptClick = require('common/intercept-click');
|
|
|
|
|
|
$(() => {
|
|
|
$('body').on('click', 'a[href]:not(".no-intercept")', function() {
|
|
|
$('body').on('click', 'a[href]', function() {
|
|
|
// 拦截跳转
|
|
|
interceptClick($(this).attr('href'));
|
|
|
return false;
|
|
|
if (!$(this).hasClass('no-intercept')) {
|
|
|
interceptClick($(this).attr('href'));
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
}); |
...
|
...
|
|