Skip to content

Commit 7148a8e

Browse files
committed
优化日志操作中重置按钮时重复查询的问题
1 parent aad94b2 commit 7148a8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/views/monitor/logininfor/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ function handleQuery() {
169169
function resetQuery() {
170170
dateRange.value = [];
171171
proxy.resetForm("queryRef");
172+
queryParams.value.pageNum = 1;
172173
proxy.$refs["logininforRef"].sort(defaultSort.value.prop, defaultSort.value.order);
173-
handleQuery();
174174
}
175175
/** 多选框选中数据 */
176176
function handleSelectionChange(selection) {

src/views/monitor/operlog/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ function handleQuery() {
239239
function resetQuery() {
240240
dateRange.value = [];
241241
proxy.resetForm("queryRef");
242+
queryParams.value.pageNum = 1;
242243
proxy.$refs["operlogRef"].sort(defaultSort.value.prop, defaultSort.value.order);
243-
handleQuery();
244244
}
245245
/** 多选框选中数据 */
246246
function handleSelectionChange(selection) {

0 commit comments

Comments
 (0)