|
@@ -1,8 +1,8 @@
|
|
|
import { queryLightList } from '@/services/controller';
|
|
|
+import { UnityAction } from '@/utils/utils';
|
|
|
import { useParams, useRequest } from '@umijs/max';
|
|
|
import { Spin } from 'antd';
|
|
|
import styles from '../index.less';
|
|
|
-import { UnityAction } from '@/utils/utils';
|
|
|
|
|
|
const Work = (props) => {
|
|
|
const { projectId } = useParams();
|
|
@@ -10,7 +10,7 @@ const Work = (props) => {
|
|
|
const { data, loading } = useRequest(queryLightList, {
|
|
|
defaultParams: [projectId],
|
|
|
onSuccess(res) {
|
|
|
- UnityAction.sendMsg('lightData', res.list);
|
|
|
+ UnityAction.sendMsg('lightData', JSON.stringify(res.list));
|
|
|
},
|
|
|
});
|
|
|
|