diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index c8f1d67a3..d58251ec1 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -66,17 +66,19 @@ const router = new VueRouter({ }); // 进度条配置 -ViewUI.LoadingBar.config({ - color: '#3fcc25', - failedColor: '#ff0000' -}); -router.beforeEach((to, from, next) => { - ViewUI.LoadingBar.start(); - next(); -}); -router.afterEach(() => { - ViewUI.LoadingBar.finish(); -}); +if (!isElectron) { + ViewUI.LoadingBar.config({ + color: '#3fcc25', + failedColor: '#ff0000' + }); + router.beforeEach((to, from, next) => { + ViewUI.LoadingBar.start(); + next(); + }); + router.afterEach(() => { + ViewUI.LoadingBar.finish(); + }); +} // 加载函数 Vue.prototype.goForward = function(location, isReplace) {