意见反馈文件存储路径更改
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
4e2fecc999
commit
37a58ca649
|
@ -98,6 +98,7 @@
|
|||
<uploadImage
|
||||
:path.sync="form.ScreenshotList"
|
||||
:isUpload.sync="loading"
|
||||
:trialId="trialId"
|
||||
:disabled="type === 'detail'"
|
||||
ref="uploadImage"
|
||||
/>
|
||||
|
|
|
@ -76,6 +76,10 @@ export default {
|
|||
required: true,
|
||||
default: false,
|
||||
},
|
||||
trialId: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -108,10 +112,11 @@ export default {
|
|||
// 上传oss
|
||||
async uploadToOSS(name, file) {
|
||||
try {
|
||||
let res = await this.OSSclient.put(
|
||||
`/System/GeneralDocuments/${name}`,
|
||||
file
|
||||
);
|
||||
let defaultPath = "/System/FeedBack/";
|
||||
if (this.trialId) {
|
||||
defaultPath = `/${this.trialId}/FeedBack/`;
|
||||
}
|
||||
let res = await this.OSSclient.put(`${defaultPath}${name}`, file);
|
||||
return res;
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
|
|
Loading…
Reference in New Issue