From 3714683d804204e0bbd44f69b64aab3d096fedd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 24 Nov 2021 23:45:59 +0800 Subject: [PATCH] Update app.js --- static/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/app.js b/static/app.js index a8143a1c2..ac248f40c 100644 --- a/static/app.js +++ b/static/app.js @@ -33,12 +33,12 @@ router.beforeEach(function (to, fr, next) { - let page = to.fullPath; + const page = to.fullPath; if (to.fullPath === '/') { page = './static/template/index.vue'; } - let name = page.replace(/[.\/]+/g, '_'); + const name = page.replace(/[.\/]+/g, '_'); if (router.hasRoute(name)) { next(); } else {