修复点击查询后清空规则类型问题

This commit is contained in:
陈昱达
2025-08-05 11:05:51 +08:00
parent e3eb0e694f
commit 7229a86d09

View File

@@ -356,9 +356,12 @@ export default {
} }
}, },
// 获取规则列表数据 // 获取规则列表数据
getList() { getList(queryParams) {
this.loading = true this.loading = true
const params = Object.assign({}, this.queryParams) const params = Object.assign(
{},
queryParams ? queryParams : this.queryParams
)
getRulePage(params) getRulePage(params)
.then(response => { .then(response => {
@@ -444,8 +447,8 @@ export default {
} }
// 使用转换后的参数进行查询 // 使用转换后的参数进行查询
this.queryParams = queryParams // this.queryParams = queryParams
this.getList() this.getList(queryParams)
}, },
// 重置按钮点击事件 // 重置按钮点击事件
resetQuery() { resetQuery() {