jcq 3 dni temu
rodzic
commit
e8722ba82f

+ 1 - 1
src/views/marketing/config/components/ipGroupingEdit.vue

@@ -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');