feat: 支持在脚本中进行http请求 (#2331)

This commit is contained in:
NyaMisty
2025-10-13 00:42:20 +08:00
committed by GitHub
parent 38a5ddc842
commit 910b005461
6 changed files with 112 additions and 0 deletions

View File

@@ -35,6 +35,16 @@ public class ScriptGroupProjectEditorViewModel : ObservableObject
}
}
public bool? AllowJsHTTP
{
get => _project.AllowJsHTTP;
set
{
_project.AllowJsHTTP = value;
OnPropertyChanged();
}
}
public string Status
{
get => _project.Status;
@@ -58,6 +68,10 @@ public class ScriptGroupProjectEditorViewModel : ObservableObject
{
OnPropertyChanged(nameof(AllowJsNotification));
}
if (e.PropertyName == nameof(ScriptGroupProject.AllowJsHTTP))
{
OnPropertyChanged(nameof(AllowJsHTTP));
}
};
}
}