fix: 🐛 修复点击搜索,不重置当前页面,导致发送两次请求

This commit is contained in:
超凡
2025-04-25 10:35:01 +08:00
parent feaaec9abd
commit d4d0a71865
6 changed files with 6 additions and 0 deletions

View File

@@ -280,6 +280,7 @@ const parentChildLinked = ref(true);
// 查询
function handleQuery() {
loading.value = true;
queryParams.pageNum = 1;
RoleAPI.getPage(queryParams)
.then((data) => {
roleList.value = data.list;