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') {