Skip to content

Commit

Permalink
fix: localStorage of formQiniu
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Aug 27, 2023
1 parent f7cdc8b commit 2b5f12d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/components/CodemirrorEditor/UploadImgDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,6 @@ export default {
path: ``,
cdnHost: ``,
},
minioOSS: {
endpoint: ``,
port: ``,
useSSL: true,
bucket: ``,
accessKey: ``,
secretKey: ``,
},
formTxCOS: {
secretId: ``,
secretKey: ``,
Expand All @@ -441,6 +433,14 @@ export default {
domain: ``,
region: ``,
},
minioOSS: {
endpoint: ``,
port: ``,
useSSL: true,
bucket: ``,
accessKey: ``,
secretKey: ``,
},
formCustom: {
code:
localStorage.getItem(`formCustomConfig`) ||
Expand Down Expand Up @@ -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.formTxCOS = 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`)
}
Expand Down

0 comments on commit 2b5f12d

Please sign in to comment.