Skip to content

Commit bb2ba65

Browse files
authored
Merge pull request #3617 from hLinx/hotfix_master
Hotfix master
2 parents e98e54f + e6096d3 commit bb2ba65

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/frontend/src/components/jb-router-view/guide/corntab-list.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@
3636
{{ $t('采用类Unix Crontab的配置表达式风格,降低使用门槛更快上手!提供了执行前/后通知提醒、执行记录等辅助功能,让用户可以放心地把定期执行的任务交给Job!') }}
3737
</div>
3838
<div class="page-action">
39-
<bk-button
39+
<auth-button
40+
auth="cron/create"
4041
theme="primary"
4142
@click="handleCreateCron">
4243
{{ $t('新建定时任务') }}
43-
</bk-button>
44+
</auth-button>
4445
</div>
4546
</div>
4647
</div>

src/frontend/src/views/white-ip/index/components/operation.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@
103103
</div>
104104
</template>
105105
<script>
106+
import _ from 'lodash';
107+
106108
import AppManageService from '@service/app-manage';
107109
import HostAllManageService from '@service/host-all-manage';
108110
import WhiteIpService from '@service/white-ip';
@@ -167,7 +169,7 @@
167169
hostList,
168170
};
169171
170-
this.scopeValue = this.formData.scopeList.map(item => `#${item.scopeType}#${item.scopeId}`);
172+
this.scopeValue = _.filter(this.formData.scopeList, item => item.scopeType && item.scopeId).map(item => `#${item.scopeType}#${item.scopeId}`);
171173
},
172174
immediate: true,
173175
},

0 commit comments

Comments
 (0)