mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-18 14:13:58 +00:00
perf: 客户端隐藏顶部加载进度条
This commit is contained in:
parent
9ffa46a878
commit
ad46fd1aae
2
resources/assets/js/app.js
vendored
2
resources/assets/js/app.js
vendored
@ -66,6 +66,7 @@ const router = new VueRouter({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 进度条配置
|
// 进度条配置
|
||||||
|
if (!isElectron) {
|
||||||
ViewUI.LoadingBar.config({
|
ViewUI.LoadingBar.config({
|
||||||
color: '#3fcc25',
|
color: '#3fcc25',
|
||||||
failedColor: '#ff0000'
|
failedColor: '#ff0000'
|
||||||
@ -77,6 +78,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
ViewUI.LoadingBar.finish();
|
ViewUI.LoadingBar.finish();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 加载函数
|
// 加载函数
|
||||||
Vue.prototype.goForward = function(location, isReplace) {
|
Vue.prototype.goForward = function(location, isReplace) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user