@@ -70,7 +70,7 @@ const onSubmit = async () => {
loading.value = true;
await addGroup({
...state.ruleForm,
- groupType: state.type === 'ip' ? 1 : 2,
+ groupType: props.type === 'ip' ? 1 : 2,
});
useMessage().success(t('common.addSuccessText'));
emit('onsuccess');