桌面端请求收藏&桌面端请求编辑可直接查看响应体

This commit is contained in:
wanghongen
2023-08-26 12:27:08 +08:00
parent 37790b08c3
commit dccebade3a
26 changed files with 933 additions and 297 deletions

View File

@@ -71,8 +71,11 @@ class Configuration {
await _loadConfig();
}
String? userHome;
Future<File> homeDir() async {
String? userHome;
if (userHome != null) {
return File("${userHome!}${Platform.pathSeparator}.proxypin");
}
if (Platforms.isDesktop()) {
userHome = Platform.environment['HOME'] ?? Platform.environment['USERPROFILE'];
} else {