添加依赖管理

This commit is contained in:
whyour
2021-10-23 18:23:32 +08:00
parent bad247c51c
commit 795d1b938d
19 changed files with 1170 additions and 17 deletions
+6
View File
@@ -48,6 +48,12 @@ export default {
icon: <FormOutlined />,
component: '@/pages/script/index',
},
{
path: '/dependence',
name: '依赖管理',
icon: <FormOutlined />,
component: '@/pages/dependence/index',
},
{
path: '/diff',
name: '对比工具',
+8 -3
View File
@@ -129,9 +129,14 @@ export default function (props: any) {
);
ws.current.onmessage = (e: any) => {
if (e.data === 'hanhh') {
console.log('websocket连接成功', e);
} else {
try {
const data = JSON.parse(e.data);
if (data && data.message === 'hanhh') {
console.log('websocket连接成功', e);
} else {
console.log('websocket连接失败', e);
}
} catch (error) {
console.log('websocket连接失败', e);
}
};