fix(项目设置): 添加机器人通知时没提示webhook必填

--bug=1016932 --user=李玉号 【测试跟踪】测试计划定时任务,添加机器人通知,没提示webhook必填
https://www.tapd.cn/55049933/s/1258552
This commit is contained in:
shiziyuan9527 2022-10-11 16:43:59 +08:00 committed by lyh
parent 9c780153d3
commit 095ef07d9e
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ export default {
},
handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) {
if (data.type === 'WEBHOOK') {
if (['WEBHOOK', 'WECHAT_ROBOT', 'LARK', 'NAIL_ROBOT'].indexOf(data.type) >= 0) {
if (!data.webhook) {
this.$warning(this.$t('organization.message.message_webhook'));
} else {