|
@@ -2,19 +2,18 @@ import PageContent from '@/components/PageContent';
|
|
|
import PageTitle from '@/components/PageTitle';
|
|
|
import TabsContent from '@/components/TabsContent';
|
|
|
import { UnityAction } from '@/utils/utils';
|
|
|
-import { useEffect } from 'react';
|
|
|
import AirConditioner from './components/AirConditioner';
|
|
|
import Light from './components/Light';
|
|
|
|
|
|
function Hardware() {
|
|
|
const handleTabsChange = (tab) => {
|
|
|
- UnityAction.sendMsg(tab == '1' ? 'ACData' : 'lightData');
|
|
|
+ // UnityAction.sendMsg(tab == '1' ? 'ACData' : 'lightData');
|
|
|
};
|
|
|
|
|
|
- useEffect(() => {
|
|
|
- UnityAction.sendMsg('ACData');
|
|
|
- }, []);
|
|
|
-
|
|
|
+ // useEffect(() => {
|
|
|
+ // UnityAction.sendMsg('ACData');
|
|
|
+ // }, []);
|
|
|
+
|
|
|
return (
|
|
|
<PageContent closeable={false}>
|
|
|
<PageTitle
|