diff --git a/page/console.php b/page/console.php
index df47354..b714f2c 100644
--- a/page/console.php
+++ b/page/console.php
@@ -127,7 +127,7 @@ $access = new Access_Core();
logs['rows'] > 1): ?>
@@ -314,10 +314,16 @@ $(document).ready(function() {
data: JSON.stringify(ids),
success: function(data) {
if (data.code == 0) {
- swal('删除成功', '所选记录已删除', 'success');
$.each(ids, function(index, elem) {
$('.typecho-list-table tbody tr[data-id="' + elem + '"]').fadeOut(500).remove();
});
+ swal({title:'删除成功',
+ text:'所选记录已删除',
+ type:'success'}, function() {
+ if($('.typecho-list-table tbody tr').length == 0) {
+ window.location.reload();
+ }
+ });
} else {
swal('错误', '发生错误了', 'warning');
}