Commit c848438f authored by 徐一鸣's avatar 徐一鸣

应用构建fixed

parent b83b9abb
...@@ -500,9 +500,13 @@ export default { ...@@ -500,9 +500,13 @@ export default {
this.deploy_info.file = ""; this.deploy_info.file = "";
this.$refs.step2_upload.clearFiles(); this.$refs.step2_upload.clearFiles();
} }
this.step2Loading = false;
}, },
deployUploadRemove() { deployUploadRemove() {
this.deploy_info.file = ""; this.deploy_info.file = "";
this.step2Loading = false;
}, },
deployUploadSuccess(response) { deployUploadSuccess(response) {
if (response.success == 1) { if (response.success == 1) {
...@@ -530,6 +534,7 @@ export default { ...@@ -530,6 +534,7 @@ export default {
message: `提交失败`, message: `提交失败`,
type: "warning", type: "warning",
}); });
this.step2Loading = false; this.step2Loading = false;
}, },
step2Action() { step2Action() {
...@@ -583,6 +588,7 @@ export default { ...@@ -583,6 +588,7 @@ export default {
} else { */ } else { */
this.image_info.file = file; this.image_info.file = file;
this.$refs.step1_upload_item.clearValidate(); this.$refs.step1_upload_item.clearValidate();
this.addImageLoading = false;
// } // }
}, },
imageUploadSuccess(response) { imageUploadSuccess(response) {
...@@ -610,16 +616,19 @@ export default { ...@@ -610,16 +616,19 @@ export default {
message: `上传镜像失败`, message: `上传镜像失败`,
type: "warning", type: "warning",
}); });
this.addImageLoading = false; this.addImageLoading = false;
}, },
imageUploadRemove() { imageUploadRemove() {
this.image_info.file = ""; this.image_info.file = "";
this.addImageLoading = false;
}, },
addImage() { addImage() {
if (this.addImageLoading) { if (this.addImageLoading) {
return; return;
} }
this.$refs.image_info_form.validate((valid) => { this.$refs.image_info_form.validate((valid) => {
if (valid) { if (valid) {
this.addImageLoading = true; this.addImageLoading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment