From a23a2c417afcf46da2f2626d4fdecddade205405 Mon Sep 17 00:00:00 2001 From: YANGDL <114714267@qq.com> Date: 星期一, 11 一月 2021 16:39:06 +0800 Subject: [PATCH] 优化左下角业务看板展示动画 --- src/router/index.js | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 7477bf9..99f1696 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,5 +11,21 @@ mode: routeMode || 'hash', routes: routes }) - +router.beforeEach((to, from, next) => { + Vue.prototype.$cancels.forEach((cancel) => { + cancel() + }) + Vue.prototype.$cancels = [] + // 涓嶉渶瑕佺櫥褰曡璇佺殑璺敱 + if (Object.hasOwnProperty.call(to.meta, 'noLoginIdentify') && to.meta.noLoginIdentify) { + next() + return + } + next() +}) +router.beforeResolve((to, from, next) => { + next() +}) +router.afterEach((to, from) => { +}) export default router -- Gitblit v1.8.0