From 75dff8bb1f5a12b1f79eaeae207f383eafb71293 Mon Sep 17 00:00:00 2001 From: crosswk Date: Wed, 29 Jul 2026 17:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=EF=BC=9A=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=8F=8D=E9=A6=88=E9=A1=B5=E9=93=BE=E6=8E=A5=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E5=BD=93=E5=89=8D=E9=85=8D=E7=BD=AE=E7=9A=84=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/FeedbackSection.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/components/FeedbackSection.tsx b/client/src/components/FeedbackSection.tsx index b586fa4..b61ea8b 100644 --- a/client/src/components/FeedbackSection.tsx +++ b/client/src/components/FeedbackSection.tsx @@ -3,11 +3,9 @@ import { useEffect, useState } from 'react' import { X } from 'lucide-react' import { open } from '@tauri-apps/plugin-shell' +import { getBackendBaseUrl } from '@/services/runtimeConfig' import { getLastTranscript, submitFeedback } from '@/services/feedback' -// 已发布反馈的公开只读页面(官方站点) -const FEEDBACK_PAGE_URL = 'https://sayitapp.site/feedback' - export default function FeedbackSection() { const [lastTranscript, setLastTranscript] = useState('') const [showTranscript, setShowTranscript] = useState(true) @@ -63,7 +61,8 @@ export default function FeedbackSection() { const handleOpenFeedbackPage = async () => { try { - await open(FEEDBACK_PAGE_URL) + // 公开反馈页与用户在设置里填写的服务器地址一致 + await open(`${getBackendBaseUrl()}/feedback.html`) } catch { // 打开外部浏览器失败时静默忽略,不影响反馈提交流程 }