MCPcopy
hub / github.com/YMFE/yapi / updateProject

Function updateProject

client/reducer/modules/project.js:219–241  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

217
218// 修改项目
219export function updateProject(data) {
220 let { name, project_type, basepath, desc, _id, env, group_id, switch_notice, strice, is_json5, tag } = data;
221
222 // 过滤项目名称中有html标签存在的情况
223 name = htmlFilter(name);
224 const param = {
225 name,
226 project_type,
227 basepath,
228 switch_notice,
229 desc,
230 id: _id,
231 env,
232 group_id,
233 strice,
234 is_json5,
235 tag
236 };
237 return {
238 type: PROJECT_UPDATE,
239 payload: axios.post('/api/project/up', param)
240 };
241}
242
243// 修改项目脚本
244export function updateProjectScript(data) {

Callers 2

ProjectMessage.jsFile · 0.90
UpDateModal.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected