From c891f7e01665c1c9efe239ae070eed4e28ae3360 Mon Sep 17 00:00:00 2001
From: dushixiang <798148596@qq.com>
Date: Fri, 5 Mar 2021 20:13:51 +0800
Subject: [PATCH] remove unUsed js code
---
web/src/App.js | 9 +++++----
web/src/components/asset/AssetModal.js | 1 -
web/src/components/job/Job.js | 4 +++-
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/web/src/App.js b/web/src/App.js
index 8924646..7c30351 100644
--- a/web/src/App.js
+++ b/web/src/App.js
@@ -16,10 +16,11 @@ import {
AuditOutlined,
BlockOutlined,
CloudServerOutlined,
- CodeOutlined, ControlOutlined,
+ CodeOutlined,
+ ControlOutlined,
DashboardOutlined,
DesktopOutlined,
- DisconnectOutlined, GoldOutlined,
+ DisconnectOutlined,
IdcardOutlined,
LinkOutlined,
LoginOutlined,
@@ -187,7 +188,7 @@ class App extends Component {
- }>
+ }>
}>
@@ -195,7 +196,7 @@ class App extends Component {
- }>
+ }>
计划任务
diff --git a/web/src/components/asset/AssetModal.js b/web/src/components/asset/AssetModal.js
index a122ebe..5ac0e41 100644
--- a/web/src/components/asset/AssetModal.js
+++ b/web/src/components/asset/AssetModal.js
@@ -63,7 +63,6 @@ const AssetModal = function ({title, visible, handleOk, handleCancel, confirmLoa
}
let [accountTypes, setAccountTypes] = useState(initAccountTypes);
let [useSSL, setUseSSL] = useState(model['use-ssl']);
- let [ignoreCert, setIgnoreCert] = useState(model['ignore-cert']);
for (let key in model) {
if (model.hasOwnProperty(key)) {
diff --git a/web/src/components/job/Job.js b/web/src/components/job/Job.js
index a4e15fa..ef74823 100644
--- a/web/src/components/job/Job.js
+++ b/web/src/components/job/Job.js
@@ -319,7 +319,9 @@ class Job extends Component {
case "check-asset-status-job":
return 资产状态检测;
case "shell-job":
- return Shell脚本
+ return Shell脚本;
+ default:
+ return '';
}
}
}, {