|
|
@@ -545,6 +545,16 @@ onMounted(async () => {
|
|
|
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ // 监听一键停止
|
|
|
+ clientStore.ipc.on(icpList.socket.message + '_stop_action', (event, result) => {
|
|
|
+ console.log('_stop_action')
|
|
|
+ console.log(result)
|
|
|
+ oneClickStop()
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
// 监听拍照完成后的最终状态事件
|
|
|
clientStore.ipc.on(icpList.socket.message + '_photo_take_finish', (event, result) => {
|
|
|
console.log('_photo_take_finish')
|
|
|
@@ -667,6 +677,7 @@ onBeforeUnmount(() => {
|
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take');
|
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_photo_take_finish');
|
|
|
clientStore.ipc.removeAllListeners(icpList.socket.message + '_run_mcu_update');
|
|
|
+ clientStore.ipc.removeAllListeners(icpList.socket.message + '_stop_action');
|
|
|
/* window.removeEventListener('storage', handleStorageEvent);*/
|
|
|
|
|
|
|