Skip to content

Commit

Permalink
fix: 修复节点管理插件调用安装通道失败问题 TencentBlueKing#7397
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej authored and normal-wls committed Apr 7, 2024
1 parent 32fef0d commit a775489
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
remote_data_init: function (resp) {
if (resp.result === false) {
show_msg(resp.message, 'error');
}
if (resp.data.length != 0){
}else if (resp.data.length != 0){
this._set_value(resp.data[0]["value"]);
}
return resp.data;
Expand All @@ -76,11 +75,12 @@
{
source: "nodeman_bk_cloud_id",
type: "change",
action: function () {
var cloud_id = this.get_parent().get_child("nodeman_bk_cloud_id").value;
action: function (cloud_id) {
if (cloud_id !== '') {
this.remote_url = $.context.get('site_url') + 'pipeline/nodeman_get_install_channel/' + cloud_id + '/';
this.remoteMethod();
}else{
this._set_value("");
}
}
},
Expand Down

0 comments on commit a775489

Please sign in to comment.