CN-1412 fix: 修复新增/编辑policy页library的入参错误问题

This commit is contained in:
刘洪洪
2023-10-26 11:36:13 +08:00
parent e7637dd866
commit 407d9ec667

View File

@@ -378,7 +378,7 @@ export default {
this.metricList = detectionUnitList.metricList || []
if (this.mySettingObj.ruleType === this.detectionRuleType.indicator) {
axios.get(api.knowledgeBaseList, { params: this.searchLabel, pageSize: -1 }).then(response => {
axios.get(api.knowledgeBaseList, { params: { pageSize: -1 } }).then(response => {
if (response.status === 200) {
this.libraryList = _.get(response, 'data.data.list', []).filter(l => l.isBuiltIn === 0)
} else {