mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 17:54:32 +08:00
添加依赖管理
This commit is contained in:
@@ -48,6 +48,12 @@ export default {
|
||||
icon: <FormOutlined />,
|
||||
component: '@/pages/script/index',
|
||||
},
|
||||
{
|
||||
path: '/dependence',
|
||||
name: '依赖管理',
|
||||
icon: <FormOutlined />,
|
||||
component: '@/pages/dependence/index',
|
||||
},
|
||||
{
|
||||
path: '/diff',
|
||||
name: '对比工具',
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user