From 1b4f1c9db703b1bfd0e3f8cc7f01153a7399088d Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期一, 10 四月 2023 15:53:47 +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