...
|
...
|
@@ -17,6 +17,7 @@ |
|
|
const $ = require('jquery');
|
|
|
const yoho = require('yoho');
|
|
|
const Vue = require('vue');
|
|
|
const util = require('common/util');
|
|
|
const interceptClick = require('common/intercept-click');
|
|
|
|
|
|
// 隐藏 App 默认显示的 loading
|
...
|
...
|
@@ -24,6 +25,7 @@ Vue.mixin({ |
|
|
ready() {
|
|
|
if (this === this.$root && location.pathname !== '/sidebar') {
|
|
|
yoho.showLoading(false);
|
|
|
util.visibilitychange();
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -33,6 +35,7 @@ $(() => { |
|
|
|
|
|
if ($body.hasClass('no-local-js')) {
|
|
|
yoho.showLoading(false); // 隐藏 App 默认显示的 loading
|
|
|
util.visibilitychange();
|
|
|
}
|
|
|
$body.on('click', 'a[href]', function() {
|
|
|
// 拦截跳转
|
...
|
...
|
|