From a7dd302acbb9cb22e5968c5e9273ff8c11f0192a Mon Sep 17 00:00:00 2001 From: NanamiAdmin Date: Tue, 5 May 2026 19:03:58 +0800 Subject: [PATCH] feat(settings): add frpc path and instance config path fields Add new input fields for frpc client path and instance config storage path in settings view to allow users to customize these paths. --- src/views/Settings.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 56a2cc9..5d95dad 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -17,6 +17,14 @@ +
+ + +
+
+ + +
@@ -128,6 +136,8 @@ export default { const settings = reactive({ listenAddr: '', listenPort: '', + frpcPath: '', + instancePath: '', notificationEnabled: false, notificationMethod: 'webhook', watchdogEnabled: false, @@ -148,6 +158,8 @@ export default { const data = result.data; settings.listenAddr = data.ListenAddr || ''; settings.listenPort = data.ListenPort || ''; + settings.frpcPath = data.FrpcPath || ''; + settings.instancePath = data.InstancePath || ''; settings.notificationEnabled = data['Notification.Enabled'] || false; settings.notificationMethod = data['Notification.Method'] || 'webhook'; settings.watchdogEnabled = data['Watchdog.Enabled'] || false; @@ -168,6 +180,8 @@ export default { const payload = { ListenAddr: settings.listenAddr, ListenPort: settings.listenPort, + FrpcPath: settings.frpcPath, + InstancePath: settings.instancePath, 'Notification.Enabled': settings.notificationEnabled, 'Notification.Method': settings.notificationMethod, 'Watchdog.Enabled': settings.watchdogEnabled,