Merge branch 'abp' of https://gitee.com/ccnetcore/Yi into abp
This commit is contained in:
@@ -15,10 +15,10 @@ export function add(data) {
|
||||
});
|
||||
}
|
||||
|
||||
export function del(data) {
|
||||
export function del(code) {
|
||||
return request({
|
||||
url: `/comment`,
|
||||
method: "delete",
|
||||
data: data,
|
||||
data: "string" == typeof code ? [code] : code,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ const delComment = async (ids) => {
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}).then(async () => {
|
||||
await del({ id: [ids] });
|
||||
await del(ids);
|
||||
await loadComment();
|
||||
ElMessage({
|
||||
message: "评论已删除!",
|
||||
|
||||
Reference in New Issue
Block a user