|
@@ -13,13 +13,14 @@ function getProjectId() {
|
|
|
|
|
|
//窗帘 设置设备
|
|
|
export const setEquipeHttp = (params)=> {
|
|
|
- return $http({
|
|
|
- serverSp: config.brsgServer.duoduoUrl,
|
|
|
- url: `/server/object/eqp/infocode/set?${commonParams()}`,
|
|
|
+ return request(`/server/object/eqp/infocode/set?${commonParams()}`,{
|
|
|
method: 'POST',
|
|
|
isNotShowErrorToast: true,
|
|
|
errorSave: true,
|
|
|
data: JSON.stringify(params),
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ },
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -30,6 +31,9 @@ export const getObjectDataEqpGroupHttp = (params) => {
|
|
|
isNotShowErrorToast: true,
|
|
|
errorSave: true,
|
|
|
data: JSON.stringify(params),
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ },
|
|
|
});
|
|
|
}
|
|
|
|