Jelajahi Sumber

接口header

anxiaoxia 3 tahun lalu
induk
melakukan
c139a8b39f
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      src/services/ant-design-pro/equipment.js

+ 3 - 0
src/services/ant-design-pro/equipment.js

@@ -32,6 +32,9 @@ export const getObjectDataEqpGroupHttp = (params) => {
         isNotShowErrorToast: true,
         errorSave: true,
         data: JSON.stringify(params),
+        headers: {
+            'Content-Type': 'application/json',
+        }
     });
 }