|
@@ -295,17 +295,9 @@ export function getDeviceList(frameId, type) {
|
|
|
export function getDevicePositionList(frameId, types) {
|
|
|
return request({
|
|
|
url: `/ncs/device/getDeviceListByTypes/${frameId}`,
|
|
|
- method: 'get',
|
|
|
- params: { types },
|
|
|
- paramsSerializer: params => {
|
|
|
- // 确保数组参数正确序列化
|
|
|
- return Object.keys(params).map(key => {
|
|
|
- if (Array.isArray(params[key])) {
|
|
|
- return params[key].map(val => `${key}=${val}`).join('&');
|
|
|
- }
|
|
|
- return `${key}=${params[key]}`;
|
|
|
- }).join('&');
|
|
|
- },
|
|
|
+ method: 'post',
|
|
|
+ headers: { 'Content-Type': 'application/json' },
|
|
|
+ data: types,
|
|
|
loading: false
|
|
|
})
|
|
|
}
|