Skip to content

Commit

Permalink
fix: 公共脚本新增版本保存报错 TencentBlueKing#1396
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Oct 13, 2023
1 parent c8da026 commit 1ec4ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/frontend/src/css/bk-patch.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
.bk-form-textarea {
&:focus {
background-color: #fff !important;
border: 1px solid #3a84ff !important;
}

&.only-bottom-border {
Expand Down
7 changes: 2 additions & 5 deletions src/frontend/src/domain/source/public-script-manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,21 @@ class PublicScriptManage {

// 删除脚本
deleteById({ id }) {
return Request.delete(`${this.module}/script/${id}`, {
prefixPath: this.prefixPath,
});
return Request.delete(`${this.module}/script/${id}`);
}

// 获取脚本的所有版本
getAllVersion(payload = {}) {
const params = { ...payload };
delete params.id;
return Request.get(`${this.module}/script/${payload.id}/scriptVersion/list`, {
prefixPath: this.prefixPath,
params,
});
}

// 新增脚本版本
createVersion(params = {}) {
return Request.post(`${this.path}/script/${params.id}/scriptVersion`, {
return Request.post(`${this.module}/script/${params.id}/scriptVersion`, {
params,
});
}
Expand Down

0 comments on commit 1ec4ccf

Please sign in to comment.