From e952a64f354888feb03a74d3416bd1b81bc07319 Mon Sep 17 00:00:00 2001 From: NanamiAdmin Date: Fri, 22 May 2026 17:36:21 +0800 Subject: [PATCH] feat(settings): add logs path input field and update settings model --- src/views/Settings.vue | 10 +++++++++- vite.config.js | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 9e7de7a..158c35e 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -11,7 +11,7 @@
- +
@@ -27,6 +27,11 @@

You have to fill it with absolute path but not relative path

+
+ + +

You have to fill it with absolute path but not relative path

+
@@ -148,6 +153,7 @@ export default { listenPort: '', frpcPath: '', instancePath: '', + logsPath: '', notificationEnabled: false, notificationMethod: 'webhook', watchdogEnabled: false, @@ -170,6 +176,7 @@ export default { settings.listenPort = data.ListenPort || ''; settings.frpcPath = data.FrpcPath || ''; settings.instancePath = data.InstancePath || ''; + settings.logsPath = data.LogsPath || ''; settings.notificationEnabled = data['Notification.Enabled'] || false; settings.notificationMethod = data['Notification.Method'] || 'webhook'; settings.watchdogEnabled = data['Watchdog.Enabled'] || false; @@ -192,6 +199,7 @@ export default { ListenPort: settings.listenPort, FrpcPath: settings.frpcPath, InstancePath: settings.instancePath, + LogsPath: settings.logsPath, 'Notification.Enabled': settings.notificationEnabled, 'Notification.Method': settings.notificationMethod, 'Watchdog.Enabled': settings.watchdogEnabled, diff --git a/vite.config.js b/vite.config.js index ec11fd8..41c1b53 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' -const APP_TARGET = '192.168.20.4:19090' +const APP_TARGET = '192.168.1.4:7000' export default defineConfig({ define: {