Compare commits
No commits in common. "25d8ee6bc57efa4c451d0741127016e21ab4bd79" and "2b71341d4c79f6622083c034d51ab7815e6e7926" have entirely different histories.
25d8ee6bc5
...
2b71341d4c
|
@ -15,14 +15,7 @@ Vue.prototype.OSSclientConfig = {
|
|||
|
||||
|
||||
async function ossGenerateSTS() {
|
||||
let res = null;
|
||||
if (localStorage.getItem('stsToken')) {
|
||||
res = JSON.parse(localStorage.getItem('stsToken'))
|
||||
} else {
|
||||
res = await GetObjectStoreToken()
|
||||
localStorage.setItem('stsToken', JSON.stringify(res))
|
||||
}
|
||||
|
||||
let res = await GetObjectStoreToken()
|
||||
// res.Result.ObjectStoreUse = 'AWS';
|
||||
Vue.prototype.OSSclientConfig = { ...res.Result[res.Result.ObjectStoreUse] }
|
||||
Vue.prototype.OSSclientConfig.ObjectStoreUse = res.Result.ObjectStoreUse;
|
||||
|
|
Loading…
Reference in New Issue