diff --git a/.env b/.env index ab77a95..50ac9f0 100644 --- a/.env +++ b/.env @@ -13,6 +13,6 @@ VITE_BASE_URL=http://192.168.1.111:8899 VITE_WEBSOCKET_JAVA_URL=ws://192.168.1.111:8899/websocket/nuclear -VITE_WEBSOCKET_CAMERA_URL=ws://127.0.0.1:8899/websocket/nuclear -VITE_WEBSOCKET_CAMERA_URL=ws://192.168.1.111:8081/ws/cmd -VITE_HOST_URL=http://192.168.1.111:8081/ \ No newline at end of file +# VITE_WEBSOCKET_CAMERA_URL=ws://127.0.0.1:8899/websocket/nuclear +VITE_WEBSOCKET_CAMERA_URL=ws://192.168.1.111:8899/ws/cmd +VITE_HOST_URL=http://192.168.1.111:8899/ \ No newline at end of file diff --git a/src/components/Task.vue b/src/components/Task.vue index 4260f10..bd8d1ff 100644 --- a/src/components/Task.vue +++ b/src/components/Task.vue @@ -158,7 +158,7 @@ export default { { colKey: 'taskName', title: '任务名称', - width: 120, + width: 160, }, { colKey: 'operatorName', diff --git a/src/mock/ws.cjs b/src/mock/ws.cjs index 3c43c6a..ec6e7cb 100644 --- a/src/mock/ws.cjs +++ b/src/mock/ws.cjs @@ -6,18 +6,18 @@ server.on('connection', socket => { socket.on('message', message => { console.log(`Received message => ${message}`) - let msg = { - command: 'detection_completed', - result: { - imgUrl: - 'https://www.whyknown.com/static/img/5e713df34d58da23e47fe08ee3634440.clipboard-2022-09-16.png', - detection_result_top: 'YQT0DB', - detection_result_bottom: 'FBNA0T1E', - taskId: '21', - coord: '1-6', - }, - } - socket.send(JSON.stringify(msg)) + // let msg = { + // command: 'detection_completed', + // result: { + // imgUrl: + // 'https://www.whyknown.com/static/img/5e713df34d58da23e47fe08ee3634440.clipboard-2022-09-16.png', + // detection_result_top: 'YQT0DB', + // detection_result_bottom: 'FBNA0T1E', + // taskId: '21', + // coord: '1-6', + // }, + // } + // socket.send(JSON.stringify(msg)) }) socket.on('close', () => {