1
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
34ce5142f2
commit
478adcde21
|
|
@ -23,7 +23,9 @@ async function ossGenerateSTS() {
|
||||||
res = await GetObjectStoreToken()
|
res = await GetObjectStoreToken()
|
||||||
localStorage.setItem('stsToken', JSON.stringify(res))
|
localStorage.setItem('stsToken', JSON.stringify(res))
|
||||||
}
|
}
|
||||||
let trialId = this.$route.query.trialId
|
const urlParams = new URLSearchParams(window.location.search)
|
||||||
|
|
||||||
|
const trialId = urlParams.get('trialId')
|
||||||
// res.Result.ObjectStoreUse = 'AWS';
|
// res.Result.ObjectStoreUse = 'AWS';
|
||||||
Vue.prototype.OSSclientConfig = { ...res.Result[res.Result.ObjectStoreUse] }
|
Vue.prototype.OSSclientConfig = { ...res.Result[res.Result.ObjectStoreUse] }
|
||||||
Vue.prototype.OSSclientConfig.ObjectStoreUse = res.Result.ObjectStoreUse;
|
Vue.prototype.OSSclientConfig.ObjectStoreUse = res.Result.ObjectStoreUse;
|
||||||
|
|
@ -228,7 +230,9 @@ function uploadAWS(aws, data, progress, fileInfo) {
|
||||||
data.path = data.path.replace(`/${bucketName}/`, '');
|
data.path = data.path.replace(`/${bucketName}/`, '');
|
||||||
await exist(aws, bucketName, data, progress, (path, status) => {
|
await exist(aws, bucketName, data, progress, (path, status) => {
|
||||||
if (status === 'success') {
|
if (status === 'success') {
|
||||||
let trialId = this.$route.query.trialId
|
const urlParams = new URLSearchParams(window.location.search)
|
||||||
|
|
||||||
|
const trialId = urlParams.get('trialId')
|
||||||
if (Object.keys(fileInfo).length !== 0) {
|
if (Object.keys(fileInfo).length !== 0) {
|
||||||
let params = Object.assign({path: decodeUtf8(curPath)}, fileInfo)
|
let params = Object.assign({path: decodeUtf8(curPath)}, fileInfo)
|
||||||
addOrUpdateFileUploadRecord(params)
|
addOrUpdateFileUploadRecord(params)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue