aops-hermes/0011-Add-null-judgment-for-generating-cve-and-repo-tasks.patch
2023-11-06 15:36:56 +08:00

75 lines
2.5 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 02352bf00edbf61e4fbce90cef4c7ffc54588859 Mon Sep 17 00:00:00 2001
From: wkl505997900 <2313665567@qq.com>
Date: Thu, 26 Oct 2023 11:40:44 +0800
Subject: [PATCH 1/2] add panduan
---
.../leaks/components/CreateRepairTaskDrawer.vue | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/leaks/components/CreateRepairTaskDrawer.vue b/src/views/leaks/components/CreateRepairTaskDrawer.vue
index 3883e1e..c68dc21 100644
--- a/src/views/leaks/components/CreateRepairTaskDrawer.vue
+++ b/src/views/leaks/components/CreateRepairTaskDrawer.vue
@@ -519,9 +519,9 @@ export default {
const _this = this;
if (this.taskType === 'cve fix') {
- // if (this.cveLiIsEmpty()) {
- // return;
- // }
+ if (this.cveLiIsEmpty()) {
+ return;
+ }
if (this.innerCveList.length !== 0) {
const cveListparam = this.cveList.map((cve) => {
return {
@@ -627,6 +627,9 @@ export default {
if (this.taskType === 'cve rollback') {
// 根据主机数据获取类型自行或cve下的主机数据或者使用外部输入的主机数据更行talbe数据
+ if (this.cveLiIsEmpty()) {
+ return;
+ }
if (this.innerCveList.length !== 0) {
const cveListparam = this.cveList.map((cve) => {
return {
@@ -663,9 +666,6 @@ export default {
case hostListTypes[0]:
// hostListType为byLoading
_this.hostUnderCveLoading = true;
- // if (this.cveLiIsEmpty()) {
- // return;
- // }
getHostUnderMultipleCVE(this.fixParams)
.then(function (res) {
// hostlists are contained in cveMap
--
Gitee
From 9518fc1099383331f66398b87fda20867d8c2f8f Mon Sep 17 00:00:00 2001
From: wkl505997900 <2313665567@qq.com>
Date: Thu, 26 Oct 2023 12:03:21 +0800
Subject: [PATCH 2/2] sdsd
---
src/views/leaks/components/HostTable.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/leaks/components/HostTable.vue b/src/views/leaks/components/HostTable.vue
index 35c7882..bd4ec4c 100644
--- a/src/views/leaks/components/HostTable.vue
+++ b/src/views/leaks/components/HostTable.vue
@@ -759,6 +759,7 @@ export default {
}
} else {
// 第一次判断是否有正在扫描的主机,若没有则退出查询
+ _this.getHostListAll();
_this.scanStatusloading = false;
}
}
--
Gitee