From 3f50e98aa3d85e2a75a8692bd49a45a83da4086e Mon Sep 17 00:00:00 2001 From: YangQi Date: Mon, 28 Aug 2023 07:56:23 +0800 Subject: [PATCH] fix: localStorage of formQiniu (#240) --- .../CodemirrorEditor/UploadImgDialog.vue | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/components/CodemirrorEditor/UploadImgDialog.vue b/src/components/CodemirrorEditor/UploadImgDialog.vue index 72ebe32..29e2349 100644 --- a/src/components/CodemirrorEditor/UploadImgDialog.vue +++ b/src/components/CodemirrorEditor/UploadImgDialog.vue @@ -418,14 +418,6 @@ export default { path: ``, cdnHost: ``, }, - minioOSS: { - endpoint: ``, - port: ``, - useSSL: true, - bucket: ``, - accessKey: ``, - secretKey: ``, - }, formTxCOS: { secretId: ``, secretKey: ``, @@ -441,6 +433,14 @@ export default { domain: ``, region: ``, }, + minioOSS: { + endpoint: ``, + port: ``, + useSSL: true, + bucket: ``, + accessKey: ``, + secretKey: ``, + }, formCustom: { code: localStorage.getItem(`formCustomConfig`) || @@ -505,12 +505,15 @@ export default { if (localStorage.getItem(`aliOSSConfig`)) { this.formAliOSS = JSON.parse(localStorage.getItem(`aliOSSConfig`)) } - if (localStorage.getItem(`minioConfig`)) { - this.minioOSS = JSON.parse(localStorage.getItem(`minioConfig`)) - } if (localStorage.getItem(`txCOSConfig`)) { this.formTxCOS = JSON.parse(localStorage.getItem(`txCOSConfig`)) } + if (localStorage.getItem(`qiniuConfig`)) { + this.formQiniu= JSON.parse(localStorage.getItem(`qiniuConfig`)) + } + if (localStorage.getItem(`minioConfig`)) { + this.minioOSS = JSON.parse(localStorage.getItem(`minioConfig`)) + } if (localStorage.getItem(`imgHost`)) { this.imgHost = localStorage.getItem(`imgHost`) }