Sfoglia il codice sorgente

feat: 从unity接收deveice_code参数

ZhaoJun 1 anno fa
parent
commit
fdd6b8249c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/pages/SmartOps/ChartPage.js

+ 1 - 0
src/pages/SmartOps/ChartPage.js

@@ -37,6 +37,7 @@ const ChartPage = (props) => {
   const [searchParams, setSearchParams] = useSearchParams();
   const type = searchParams.get('type') || 2;
   const data = searchParams.get('data');
+  const deviceCode = searchParams.get('device_code');
 
   const [loading, setLoading] = useState(false);
   const [options, setOptions] = useState({});