|
@@ -5,8 +5,10 @@ import icpList from "../../utils/ipc";
|
|
|
import client from "./client";
|
|
import client from "./client";
|
|
|
import {ElMessage} from "element-plus";
|
|
import {ElMessage} from "element-plus";
|
|
|
import configInfo from '@/stores/modules/config';
|
|
import configInfo from '@/stores/modules/config';
|
|
|
|
|
+import { useUserInfo } from './user';
|
|
|
const socketStore = socket();
|
|
const socketStore = socket();
|
|
|
const clientStore = client();
|
|
const clientStore = client();
|
|
|
|
|
+const userInfoStore = useUserInfo();
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -120,7 +122,10 @@ export const checkInfo = defineStore('checkInfo', () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
clientStore.ipc.removeAllListeners(icpList.camera.connect);
|
|
clientStore.ipc.removeAllListeners(icpList.camera.connect);
|
|
|
- clientStore.ipc.send(icpList.camera.connect,configInfoStore.digiCamControlPath);
|
|
|
|
|
|
|
+ clientStore.ipc.send(icpList.camera.connect, {
|
|
|
|
|
+ path: configInfoStore.digiCamControlPath,
|
|
|
|
|
+ isMultiCameraMode: userInfoStore.isMultiCameraMode,
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
clientStore.ipc.on(icpList.camera.connect, async (event, result) => {
|
|
clientStore.ipc.on(icpList.camera.connect, async (event, result) => {
|
|
|
|
|
|