From 82af85eae92790fc125ca42d1a800046fe0bd916 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期三, 29 三月 2023 14:00:08 +0800 Subject: [PATCH] 登录页修改 --- api/index.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/api/index.js b/api/index.js index 87ad6ff..3d4d824 100644 --- a/api/index.js +++ b/api/index.js @@ -11,6 +11,9 @@ }, jsonPOST: { "Content-type": 'application/json' + }, + utfPOSt: { + 'content-type': 'application/x-www-form-urlencoded;charset=utf-8' } } @@ -46,6 +49,9 @@ } else if (urlType == 'json') { opt.header = typeObj['jsonPOST']; opt.data = params; + } else if (urlType == 'utf8') { + opt.header = typeObj['utfPOSt']; + opt.data = params; } else { opt.data = params; opt.header = typeObj['headerPOST']; -- Gitblit v1.9.1