(data)
| 217 | |
| 218 | // 修改项目 |
| 219 | export 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 | // 修改项目脚本 |
| 244 | export function updateProjectScript(data) { |
no outgoing calls
no test coverage detected