Merge branch 'main' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
8abd1710a9
|
@ -307,6 +307,11 @@ public class ApiJMeterFileService {
|
|||
if (CollectionUtils.isNotEmpty(request.getBodyFiles())) {
|
||||
for (BodyFile bodyFile : request.getBodyFiles()) {
|
||||
File file = new File(bodyFile.getName());
|
||||
if (!file.exists()) {
|
||||
// 从MinIO下载
|
||||
ApiFileUtil.downloadFile(bodyFile.getId(), bodyFile.getName());
|
||||
file = new File(bodyFile.getName());
|
||||
}
|
||||
if (file != null && file.exists()) {
|
||||
byte[] fileByte = FileUtils.fileToByte(file);
|
||||
if (fileByte != null) {
|
||||
|
|
|
@ -689,6 +689,7 @@ export default {
|
|||
let definitionData = this.$router.resolve({
|
||||
name: 'ApiDefinitionWithQuery',
|
||||
params: {
|
||||
versionId: 'default',
|
||||
redirectID: getUUID(),
|
||||
dataType: 'api',
|
||||
dataSelectRange: 'edit:' + resource.id,
|
||||
|
|
|
@ -81,7 +81,7 @@ export default {
|
|||
showVersionSelector: false,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
activated() {
|
||||
this.initVersions();
|
||||
this.$nextTick(() => {
|
||||
this.refreshAllCard();
|
||||
|
|
|
@ -206,9 +206,6 @@ export default {
|
|||
},
|
||||
};
|
||||
},
|
||||
activated() {
|
||||
this.search();
|
||||
},
|
||||
methods: {
|
||||
search(versionId) {
|
||||
this.loading = true;
|
||||
|
|
|
@ -207,9 +207,6 @@ export default {
|
|||
},
|
||||
};
|
||||
},
|
||||
activated() {
|
||||
this.search();
|
||||
},
|
||||
methods: {
|
||||
search(versionId) {
|
||||
this.loading = true;
|
||||
|
|
|
@ -160,9 +160,6 @@ export default {
|
|||
},
|
||||
};
|
||||
},
|
||||
activated() {
|
||||
this.search();
|
||||
},
|
||||
methods: {
|
||||
search(versionId) {
|
||||
this.loading = true;
|
||||
|
|
|
@ -1337,7 +1337,7 @@ const message = {
|
|||
one_click_sync: "One-click sync",
|
||||
change_notification: "Change Notification",
|
||||
recipient: "Recipient",
|
||||
recipient_tips: "When the API changes, the associated CASE creator and automation scene creator will receive in-site messages,can go to",
|
||||
recipient_tips: "When the API changes, the associated CASE creator and automation scene creator will receive in-site messages, can go to",
|
||||
select_comp: {
|
||||
no_data: "No Data",
|
||||
add_data: "Add Data"
|
||||
|
|
|
@ -1345,7 +1345,7 @@ const message = {
|
|||
one_click_sync: "一键同步",
|
||||
change_notification: "变更通知",
|
||||
recipient: "接收人",
|
||||
recipient_tips: "当API发生变化时,关联的CASE创建人、自动化场景创建人会收到站内消息,可前往",
|
||||
recipient_tips: "当API发生变化时,关联的CASE创建人、自动化场景创建人会收到站内消息,可前往",
|
||||
select_comp: {
|
||||
no_data: "无数据",
|
||||
add_data: "去添加"
|
||||
|
|
Loading…
Reference in New Issue