mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: localStorage of formQiniu (#240)
This commit is contained in:
parent
f7cdc8b9f9
commit
3f50e98aa3
@ -418,14 +418,6 @@ export default {
|
|||||||
path: ``,
|
path: ``,
|
||||||
cdnHost: ``,
|
cdnHost: ``,
|
||||||
},
|
},
|
||||||
minioOSS: {
|
|
||||||
endpoint: ``,
|
|
||||||
port: ``,
|
|
||||||
useSSL: true,
|
|
||||||
bucket: ``,
|
|
||||||
accessKey: ``,
|
|
||||||
secretKey: ``,
|
|
||||||
},
|
|
||||||
formTxCOS: {
|
formTxCOS: {
|
||||||
secretId: ``,
|
secretId: ``,
|
||||||
secretKey: ``,
|
secretKey: ``,
|
||||||
@ -441,6 +433,14 @@ export default {
|
|||||||
domain: ``,
|
domain: ``,
|
||||||
region: ``,
|
region: ``,
|
||||||
},
|
},
|
||||||
|
minioOSS: {
|
||||||
|
endpoint: ``,
|
||||||
|
port: ``,
|
||||||
|
useSSL: true,
|
||||||
|
bucket: ``,
|
||||||
|
accessKey: ``,
|
||||||
|
secretKey: ``,
|
||||||
|
},
|
||||||
formCustom: {
|
formCustom: {
|
||||||
code:
|
code:
|
||||||
localStorage.getItem(`formCustomConfig`) ||
|
localStorage.getItem(`formCustomConfig`) ||
|
||||||
@ -505,12 +505,15 @@ export default {
|
|||||||
if (localStorage.getItem(`aliOSSConfig`)) {
|
if (localStorage.getItem(`aliOSSConfig`)) {
|
||||||
this.formAliOSS = JSON.parse(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`)) {
|
if (localStorage.getItem(`txCOSConfig`)) {
|
||||||
this.formTxCOS = JSON.parse(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`)) {
|
if (localStorage.getItem(`imgHost`)) {
|
||||||
this.imgHost = localStorage.getItem(`imgHost`)
|
this.imgHost = localStorage.getItem(`imgHost`)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user