MCPcopy Create free account
hub / github.com/ModelEngine-Group/app-platform / patch

Function patch

frontend/src/shared/http/http.ts:108–120  ·  view source on GitHub ↗
(url, data = {}, _object = {})

Source from the content-addressed store, hash-verified

106 * @returns {Promise}
107 */
108export const patch = (url, data = {}, _object = {}) => {
109 return new Promise((resolve, reject) => {
110 baseAxios.patch(url, data, { headers: _object }).then(
111 (response) => {
112 resolve(response);
113 },
114 (err) => {
115 msag(err);
116 reject(err);
117 }
118 );
119 });
120};
121
122/**
123 * 封装put请求

Callers 5

modifyDataSetBaseInfoFunction · 0.90
modifyDataSetListDataFunction · 0.90
guestModeUpdateFeedbackFunction · 0.90
updateFeedbackFunction · 0.90
updateCollectionAppFunction · 0.90

Calls 2

msagFunction · 0.85
patchMethod · 0.65

Tested by

no test coverage detected