27614
This commit is contained in:
		| @@ -85,7 +85,7 @@ | ||||
|     </template> | ||||
|     <template #footer> | ||||
|       <el-button @click="cancel">取消</el-button> | ||||
|       <el-button type="primary" @click="confirm">提交</el-button> | ||||
|       <el-button type="primary" :loading="isLoading" @click="confirm">提交</el-button> | ||||
|     </template> | ||||
|   </ai-detail> | ||||
| </template> | ||||
| @@ -117,6 +117,7 @@ | ||||
|           areaName: '', | ||||
|           thumbUrl: [] | ||||
|         }, | ||||
|         isLoading: false, | ||||
|         cropOps: { | ||||
|           width: "336px", | ||||
|           height: "210px" | ||||
| @@ -242,6 +243,7 @@ | ||||
|               categoryName = this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName | ||||
|             } | ||||
|  | ||||
|             this.isLoading = true | ||||
|             this.instance.post(`/app/appcontentinfo/addOrUpdate`, { | ||||
|               ...this.form, | ||||
|               moduleId: this.$route.query.moduleId, | ||||
| @@ -255,7 +257,11 @@ | ||||
|                 setTimeout(() => { | ||||
|                   this.cancel(true) | ||||
|                 }, 600) | ||||
|               } else { | ||||
|                 this.isLoading = false | ||||
|               } | ||||
|             }).catch(() => { | ||||
|               this.isLoading = false | ||||
|             }) | ||||
|           } | ||||
|         }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user