mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-03 11:05:16 +08:00
feat: 支持在脚本中进行http请求 (#2331)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user