From 4b4920c2d811f4a8b4fdc6cad7b06454905fc29c Mon Sep 17 00:00:00 2001 From: jazz <jazzxhunter@163.com> Date: 星期二, 26 十二月 2023 19:12:21 +0800 Subject: [PATCH] update_202312261911_卸麻通知和称谓显示v4 --- src/utils/jun_http.js | 36 ++++++++++++++++++------------------ 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/utils/jun_http.js b/src/utils/jun_http.js index 71aca81..15ec604 100644 --- a/src/utils/jun_http.js +++ b/src/utils/jun_http.js @@ -1,7 +1,7 @@ /** * Http 璇锋眰 * * 灏忕▼搴忚浣跨敤澧炲己缂栬瘧 - * + * * 璋冪敤渚嬪瓙 * Req.http.post({ * url: '', @@ -12,24 +12,24 @@ import Axios from '../libs/axios' /* json杞琭ormdata锛堝簭鍒楀寲锛夛紝浠呮敮鎸佷竴绾у瓧闈㈤噺鍜屽瓧闈㈤噺鏁扮粍 */ -function jsonToFormData (json) { - var arr = [] - var e = encodeURIComponent - for (var key in json) { - var item = json[key] - var res - if (item instanceof Array) { - res = []; - item.map(function (o, i) { - res.push(e(key) + '=' + e(o)) - }); - res = res.join('&') - } else { - res = e(key) + '=' + e(item) - } - arr.push(res) +function jsonToFormData(json) { + var arr = [] + var e = encodeURIComponent + for (var key in json) { + var item = json[key] + var res + if (item instanceof Array) { + res = [] + item.map(function(o) { + res.push(e(key) + '=' + e(o)) + }) + res = res.join('&') + } else { + res = e(key) + '=' + e(item) } - return arr.join('&') + arr.push(res) + } + return arr.join('&') } /** -- Gitblit v1.8.0