|
@@ -45,7 +45,7 @@
|
|
|
</el-icon>
|
|
|
</el-upload>
|
|
|
<el-button class="delete-btn" type="danger" v-if="formData.data.coverList && formData.data.coverList.length > 0"
|
|
|
- @click="formData.data.coverList = []">
|
|
|
+ @click="formData.data.coverList = [];formData.data.coverUrl=''">
|
|
|
删除
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
@@ -66,7 +66,7 @@
|
|
|
</el-icon>
|
|
|
</el-upload>
|
|
|
<el-button class="delete-btn" type="danger" v-if="formData.data.audioList && formData.data.audioList.length > 0"
|
|
|
- @click="formData.data.audioList = []">
|
|
|
+ @click="formData.data.audioList = [];formData.data.audioUrl=''">
|
|
|
删除
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
@@ -208,7 +208,20 @@ const config = computed(() => {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
}
|
|
|
- ).then(() => {});
|
|
|
+ ).then(() => {
|
|
|
+ //删除
|
|
|
+ proxy
|
|
|
+ .post("/blessingCover/delete", {
|
|
|
+ id: row.id,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ ElMessage({
|
|
|
+ message: "删除成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
];
|