From 193ab7796d3a3029f3f49eaea42fd9a35a070c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=B5=A9?= Date: Mon, 17 Jul 2023 20:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A6=E6=88=AA=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.js b/src/main.js index b2bdb84a4..9f473df6b 100644 --- a/src/main.js +++ b/src/main.js @@ -66,13 +66,13 @@ import { Loading } from 'element-ui'; // 路由拦截 router.beforeEach(function (to, from, next) { - const currentURL = window.location.href - if (currentURL.indexOf('#/') > 0) { - const index = currentURL.indexOf('#/') - const startUrl = currentURL.slice(0, index) - const endUrl = currentURL.slice(index + 2) - window.location.href = startUrl + endUrl - } + // const currentURL = window.location.href + // if (currentURL.indexOf('#/') > 0) { + // const index = currentURL.indexOf('#/') + // const startUrl = currentURL.slice(0, index) + // const endUrl = currentURL.slice(index + 2) + // window.location.href = startUrl + endUrl + // } let loading = Loading.service({ text: '加载中...', background: '#fff'