From 00bbfea616ea1aa3cbea400adcdea568179d79f0 Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 17 Apr 2021 10:48:38 +0800 Subject: [PATCH] update --- spug_web/src/pages/host/index.js | 4 ++-- spug_web/src/pages/ssh/index.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spug_web/src/pages/host/index.js b/spug_web/src/pages/host/index.js index 28141a9..60f3b4f 100644 --- a/spug_web/src/pages/host/index.js +++ b/spug_web/src/pages/host/index.js @@ -6,7 +6,7 @@ import React from 'react'; import { observer } from 'mobx-react'; import { Row, Col, Button } from 'antd'; -import { RobotOutlined } from '@ant-design/icons'; +import { CodeOutlined } from '@ant-design/icons'; import { AuthDiv, Breadcrumb } from 'components'; import Group from './Group'; import ComTable from './Table'; @@ -24,7 +24,7 @@ export default observer(function () { return ( - } onClick={openTerminal}>Web 终端}> + } onClick={openTerminal}>Web 终端}> 首页 主机管理 diff --git a/spug_web/src/pages/ssh/index.js b/spug_web/src/pages/ssh/index.js index 14c94b0..acfcc36 100644 --- a/spug_web/src/pages/ssh/index.js +++ b/spug_web/src/pages/ssh/index.js @@ -23,6 +23,7 @@ function WebSSH(props) { const [activeId, setActiveId] = useState(); useEffect(() => { + window.document.title = 'Spug web terminal' window.addEventListener('beforeunload', leaveTips) http.get('/api/host/group/?with_hosts=1') .then(res => setTreeData(res.treeData))