Browse Source

fix(SCRM-6671): 补充对无牌车的参数校验

john 1 năm trước cách đây
mục cha
commit
e7afe9a011
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/api/request.js

+ 1 - 1
src/api/request.js

@@ -198,7 +198,7 @@ export const createAxiosByinterceptors = (config) => {
       };
       // 检测无牌车出场参数, 必须为必填参数
       if(/unlicensed-car-checkout/g.test(config.url)) {
-        const data = JSON.parse(config.data)
+        const data = config.data
         if(!data.vehicleNo && !data.gateId || !config.data) {
           throw {
             response: {