Commit ba8e5e52ce87ac76e2f3484cc8604750c349838e

Authored by ww
1 parent 609935c6

fix: DEFECT-947 click device location page happend error

1 1 import { DeviceProfileModel } from '../../device/model/deviceModel';
2 2 import { HistoryData } from './model';
3 3 import { defHttp } from '/@/utils/http/axios';
  4 +import { isString } from '/@/utils/is';
4 5
5 6 // 获取设备配置
6 7 export const getDeviceProfile = (deviceType?: string) => {
7 8 return defHttp.get<DeviceProfileModel[]>({
8 9 url: '/device_profile/me/list',
9   - params: { deviceType },
  10 + params: { deviceType: isString(deviceType) ? deviceType : undefined },
10 11 });
11 12 };
12 13
... ...