From e71331015e02fd88fe1629a12f134fad7811c5d0 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 22 Nov 2021 17:46:24 +0800 Subject: [PATCH] Update app.js --- static/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/app.js b/static/app.js index ed01afd5f..609a6df5c 100644 --- a/static/app.js +++ b/static/app.js @@ -30,6 +30,7 @@ router.beforeEach(function (to, fr, next) { console.log(fr.fullPath, '-- to -->', to.fullPath) + if (router.hasRoute(to.fullPath)) { next(); } else { @@ -37,6 +38,7 @@ router.addRoute({name: to.fullPath, path: to.fullPath, component: loadVueFile(page)}); next({name: to.fullPath}); } + }); router.afterEach(function (to) {