|
@@ -72,7 +72,9 @@ export default {
|
|
|
}}>{attributes?.editText || '编辑'}</el-button>}
|
|
|
{setShowElement(attributes?.isDel, { row, column, index }) && <el-button type="text" onClick={async () => {
|
|
|
if (funs.delete) {
|
|
|
- funs.delete({ row, column, index })
|
|
|
+ funs.delete({ row, column, index }, function(){
|
|
|
+ tableData.splice(index, 1)
|
|
|
+ })
|
|
|
} else {
|
|
|
tableData.splice(index, 1)
|
|
|
}
|