Skip to content

Commit

Permalink
feat: 未选择任何节点时,添加一个错误message #6750
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 1647
  • Loading branch information
ywywZhou authored and luofann committed Jan 10, 2024
1 parent 5e3656a commit f789e53
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@
* 进入参数填写阶段,设置执行节点
*/
async onGotoParamFill () {
if (!this.selectedNodes.length) {
let hasSelectNode = !!this.selectedNodes.length
hasSelectNode = hasSelectNode || Object.values(this.activities).some(item => !item.optional)
if (!hasSelectNode) {
this.$bkMessage({
message: this.$t('请至少选择一个节点'),
theme: 'error'
Expand Down

0 comments on commit f789e53

Please sign in to comment.