+2
-1
@@ -21,6 +21,7 @@ async function ossGenerateSTS() {
|
||||
let res = await GetObjectStoreToken()
|
||||
Vue.prototype.OSSclientConfig = { ...res.Result[res.Result.ObjectStoreUse] }
|
||||
Vue.prototype.OSSclientConfig.basePath = Vue.prototype.OSSclientConfig.viewEndpoint
|
||||
console.log(Vue.prototype.OSSclientConfig.basePath)
|
||||
switch (res.Result.ObjectStoreUse) {
|
||||
case 'AliyunOSS':
|
||||
Vue.prototype.OSSclientConfig.bucket = Vue.prototype.OSSclientConfig.bucketName
|
||||
@@ -40,7 +41,7 @@ async function ossGenerateSTS() {
|
||||
if (res && res.url) {
|
||||
resolve({
|
||||
name: objectName,
|
||||
url: Vue.prototype.OSSclientConfig.viewEndpoint + objectName
|
||||
url: res.url
|
||||
})
|
||||
} else {
|
||||
reject()
|
||||
|
||||
Reference in New Issue
Block a user