The layui form will not refresh to the previous page when deleting the last page of data

The layui form will not refresh to the previous page when deleting the last page of data

Insert picture description here
js code

		done: function (res, curr, count) {
            if (curr > 1 && res.data.length === 0) {
                curr = curr - 1;
                table.reload('inputTable', { 
                    page: {
                        curr: curr
                    },
                    where: {
                    },
                }, 'data');
            }
        }
Published 8 original articles · Likes0 · Visits 307

Guess you like

Origin blog.csdn.net/weixin_43804546/article/details/105652896