1
continuous-integration/drone/push Build is running Details

main
caiyiling 2026-04-02 17:35:20 +08:00
parent 34ce5142f2
commit 478adcde21
1 changed files with 6 additions and 2 deletions

View File

@ -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)