From 98788b8c9edeacd2cdc7cfb3665fa980e93404f3 Mon Sep 17 00:00:00 2001 From: NanamiAdmin Date: Sun, 5 Apr 2026 22:45:14 +0800 Subject: [PATCH] fix: update default port values and app target configuration Change default port values from empty strings to 0 in InstanceDetail form Update APP_TARGET in vite config to use local network IP for development --- src/views/InstanceDetail.vue | 8 ++++---- vite.config.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/InstanceDetail.vue b/src/views/InstanceDetail.vue index 5514a5e..c84e0e3 100644 --- a/src/views/InstanceDetail.vue +++ b/src/views/InstanceDetail.vue @@ -521,8 +521,8 @@ export default { name: '', type: '', localIP: '', - localPort: '', - remotePort: '', + localPort: 0, + remotePort: 0, auth_method: formData.value.auth_method, serverAddr: formData.value.serverAddr, serverPort: formData.value.serverPort, @@ -599,8 +599,8 @@ export default { name: formData.value.name, type: formData.value.type, localIP: formData.value.localIP, - localPort: formData.value.localPort.toString(), - remotePort: formData.value.remotePort.toString() + localPort: formData.value.localPort, + remotePort: formData.value.remotePort }; if (isEditProxy.value) { diff --git a/vite.config.js b/vite.config.js index a4a8b26..5de54fe 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 = 'localhost:8080' +const APP_TARGET = '192.168.1.19:8080' export default defineConfig({ define: {