提交 1297730a 编写于 作者: Q qiang

feat: request method support PATCH

上级 024a3b5e
......@@ -21,6 +21,7 @@ export const HTTP_METHODS = [
'DELETE',
'TRACE',
'CONNECT',
'PATCH',
]
export function elemInArray<T = string>(str: T, arr: T[]) {
......
......@@ -699,6 +699,7 @@ var serviceContext = (function (vue) {
'DELETE',
'TRACE',
'CONNECT',
'PATCH',
];
function elemInArray(str, arr) {
if (!str || arr.indexOf(str) === -1) {
......
......@@ -936,7 +936,8 @@ const HTTP_METHODS = [
"PUT",
"DELETE",
"TRACE",
"CONNECT"
"CONNECT",
"PATCH"
];
function elemInArray(str, arr) {
if (!str || arr.indexOf(str) === -1) {
......
......@@ -2263,7 +2263,8 @@ const HTTP_METHODS = [
"PUT",
"DELETE",
"TRACE",
"CONNECT"
"CONNECT",
"PATCH"
];
function elemInArray(str, arr) {
if (!str || arr.indexOf(str) === -1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册