diff --git a/src/App.tsx b/src/App.tsx index a48e140..ecde369 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -61,3 +61,4 @@ export default function App() { ); } + diff --git a/src/components/devices/deviceController.js b/src/components/devices/deviceController.js index 88dddf3..2e6830b 100644 --- a/src/components/devices/deviceController.js +++ b/src/components/devices/deviceController.js @@ -166,22 +166,22 @@ export default class DeviceController { wsManager.close(); try { - const res = await getControlRight({ - userName: this.userInfo.username, - sourceType: 1, - token: this.userInfo.token, - }); + //const res = await getControlRight({ + // userName: this.userInfo.username, + // sourceType: 1, + // token: this.userInfo.token, + //}); - this.hasControlRight = res?.code === 200 && res.data == true; - this.onHasControlRightChange?.(this.hasControlRight); + //this.hasControlRight = res?.code === 200 && res.data == true; + //this.onHasControlRightChange?.(this.hasControlRight); wsManager.connect(sn, this.wsUrl); this.connectedDeviceSn = sn; - if (!this.hasControlRight) { - this.messageApi.warning(i18n.t('devices.fixed2OthersControlFixed2')); - return; - } + //if (!this.hasControlRight) { + // this.messageApi.warning(i18n.t('devices.fixed2OthersControlFixed2')); + // return; + //} diff --git a/src/locales/en/index.ts b/src/locales/en/index.ts index 081cb45..7ddd3b3 100644 --- a/src/locales/en/index.ts +++ b/src/locales/en/index.ts @@ -992,7 +992,6 @@ const en = { controllerNotConnected: "controllerNotConnected", otherWebConnected: "otherWebConnected", clickToRequestControl: "clickToRequestControl", - control2: "connecting", fixed2TaskSuspended2: 'Fixed2 Task Suspended2 态势', diff --git a/src/locales/zh/index.ts b/src/locales/zh/index.ts index b651ac7..fd98ecd 100644 --- a/src/locales/zh/index.ts +++ b/src/locales/zh/index.ts @@ -561,7 +561,6 @@ const zh = { controllerNotConnected: "控制器未连接", otherWebConnected: "其他网页已连接", clickToRequestControl: "点击请求控制", - control2: "已连接", controlling: "控制中",