From 79bd987a38985719444f54fb50f2cccc74069d60 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Mon, 10 Jan 2022 14:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E9=A1=B5=E5=8A=A0=E8=BD=BD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index de434e11c..eb4b75e03 100644 --- a/src/permission.js +++ b/src/permission.js @@ -96,7 +96,9 @@ router.beforeEach( async (to, from, next) => { store.dispatch('setUploadUrl', urlData.UPLOAD_API); store.dispatch('setBaseSite', urlData.BASE_SITE); } catch (e) { - console.error(e); + const urlData = handlerUrl(); + store.dispatch('setBaseUrl', urlData.BASE_API); + console.error(e); } } document.title = loginInfo[project || 'login'] ? loginInfo[project || 'login'].browserTitle || loginInfo[project || 'login'].title : '';