🐛 fix(app): 修复供应商预设识别并兼容Wails开发模式资源加载

- 抽离供应商预设匹配逻辑,避免自定义 OpenAI 端点误识别为千问 Coding Plan
- 调整 AI 设置弹窗的预设回填逻辑,并补充预设识别回归测试
- 通过 dev/prod build tag 拆分前端资源装配,避免开发模式依赖 frontend/dist
This commit is contained in:
Syngnat
2026-03-28 17:40:27 +08:00
parent fcd4d4026c
commit eeef0f06ed
7 changed files with 193 additions and 49 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"context"
"embed"
aiservice "GoNavi-Wails/internal/ai/service"
"GoNavi-Wails/internal/app"
@@ -15,9 +14,6 @@ import (
"github.com/wailsapp/wails/v2/pkg/options/windows"
)
//go:embed all:frontend/dist
var assets embed.FS
func main() {
// Create an instance of the app structure
application := app.NewApp()