Преглед изворни кода

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

john пре 1 година
родитељ
комит
e7afe9a011
1 измењених фајлова са 1 додато и 1 уклоњено
  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: {