From 6465054e0cf181c8fdf5fafae80ae49e777e4381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=A3=AE?= Date: Wed, 9 Mar 2022 11:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E5=BC=80minio=E7=9A=84=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/router/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/router/index.js b/webapp/src/router/index.js index 1a4dbfa..0472769 100644 --- a/webapp/src/router/index.js +++ b/webapp/src/router/index.js @@ -100,9 +100,9 @@ router.beforeEach(async (to, from, next) => { if (getToken()) { // 全局 minioClient 只初始化一次 if (!window.minioClient) { - // const instance = new MinioClient(); - // const minioClient = await instance.init(); - // window.minioClient = minioClient; + const instance = new MinioClient(); + const minioClient = await instance.init(); + window.minioClient = minioClient; } // 已登录且要跳转的页面是登录页 if (to.path === '/login') {