Commit 9d731571cc790cb5cf238aabaddb88d5dff52c70

Authored by ww
1 parent 8672b013

fix: 修复数据看板分享模型获取物模型Tsl未携带token

... ... @@ -196,8 +196,11 @@ export const batchGetObjectModel = ({
196 196 deviceProfileIds: string[];
197 197 functionTypeEnum?: FunctionTypeEnum | 'all';
198 198 }) => {
199   - return defHttp.post<BatchGetObjectModelItemType[]>({
200   - url: ModelOfMatter.BATCH_GET_TSL_BY_DEVICE_PROFILES,
201   - data: { deviceProfileIds, functionTypeEnum },
202   - });
  199 + return defHttp.post<BatchGetObjectModelItemType[]>(
  200 + {
  201 + url: ModelOfMatter.BATCH_GET_TSL_BY_DEVICE_PROFILES,
  202 + data: { deviceProfileIds, functionTypeEnum },
  203 + },
  204 + { withShareToken: true }
  205 + );
203 206 };
... ...