Commit ed05d0e9de016c71bf1482e25d34b5926c088f84

Authored by xp.Huang
2 parents 8672b013 9d731571

Merge branch 'fix/data-board-share' into 'main_dev'

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

See merge request yunteng/thingskit-front!1226
... ... @@ -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 };
... ...