Skip to content

Commit

Permalink
fix: 修复删除提示bug @0.9.1-6
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Mar 18, 2021
1 parent b36c533 commit 05635ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.9.1-5",
"version": "0.9.1-6",
"author": "BoBo<[email protected]>",
"main": "lib/ProCrud.umd.min.js",
"files": [
Expand Down
7 changes: 2 additions & 5 deletions src/component/crud-table/src/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default defineComponent({
listeners, attrs, emit, root,
}) {
const {
$PROCRUD, $message, $alert, $confirm,
$PROCRUD, $message, $confirm,
} = root;

// 当前行
Expand Down Expand Up @@ -530,10 +530,7 @@ export default defineComponent({
const promiseForDel = props.promiseForDel ? props.promiseForDel(row.id) : $PROCRUD.crud(DML.DELETE, props.tableName, {}, { id: row.id });
promiseForDel.then(() => {
tableReload();
$alert({
type: 'success',
message: '删除成功',
});
$message.success('删除成功');
});
})
.catch(() => {
Expand Down

0 comments on commit 05635ef

Please sign in to comment.