This commit is contained in:
yanran200730
2022-02-28 17:53:41 +08:00
parent 5b668855f3
commit 7381b11f0f
2 changed files with 53 additions and 17 deletions

View File

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