From bb95465d60d189ee140828aa62cfef4d8429178e Mon Sep 17 00:00:00 2001 From: LiuHao Date: Wed, 19 Jul 2023 22:32:43 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/download.ts | 4 ++-- src/utils/jsencrypt.ts | 2 +- src/utils/propTypes.ts | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/download.ts b/src/plugins/download.ts index c6c8521..49e0333 100644 --- a/src/plugins/download.ts +++ b/src/plugins/download.ts @@ -54,8 +54,8 @@ export default { } downloadLoadingInstance.close(); } catch (r) { - console.error(r) - ElMessage.error('下载文件出现错误,请联系管理员!') + console.error(r); + ElMessage.error('下载文件出现错误,请联系管理员!'); downloadLoadingInstance.close(); } }, diff --git a/src/utils/jsencrypt.ts b/src/utils/jsencrypt.ts index 6a8edf6..98114b4 100644 --- a/src/utils/jsencrypt.ts +++ b/src/utils/jsencrypt.ts @@ -1,7 +1,7 @@ import JSEncrypt from 'jsencrypt'; // 密钥对生成 http://web.chacuo.net/netrsakeypair -const publicKey = import.meta.env.VITE_APP_RSA_PUBLIC_KEY +const publicKey = import.meta.env.VITE_APP_RSA_PUBLIC_KEY; // 前端不建议存放私钥 不建议解密数据 因为都是透明的意义不大 const privateKey = '**********'; diff --git a/src/utils/propTypes.ts b/src/utils/propTypes.ts index 2f31820..1847040 100644 --- a/src/utils/propTypes.ts +++ b/src/utils/propTypes.ts @@ -19,8 +19,7 @@ export default class ProjectTypes extends VueTypes { return toValidableType('style', { type: [String, Object], default: undefined - - }) + }); } } export { propTypes };