fix: 工具反代路径冲突修复 + OCR改独立端口

- Stirling PDF: 用 context-path=/pdf 从应用层解决路径问题
- OCR: Vue Router history模式不兼容子路径,改回独立端口18083
- Lama Cleaner: 精确location匹配所有API(/model /inpaint等)
- PDF前端卡片路径从/spdf/改为/pdf/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-15 20:20:55 +08:00
parent 5850d37c48
commit 5eebcb5e83

View File

@@ -59,8 +59,8 @@ const toolCategories = reactive<Category[]>([
{ {
name: '📄 文档处理', name: '📄 文档处理',
tools: [ tools: [
{ id: 'stirling-pdf', name: 'Stirling PDF', icon: '', logoImg: stirlingLogo, description: 'PDF 合并、拆分、压缩、转换、加水印、OCR 识别等 30+ 功能', path: '/spdf/', enabled: true, type: 'newtab' }, { id: 'stirling-pdf', name: 'Stirling PDF', icon: '', logoImg: stirlingLogo, description: 'PDF 合并、拆分、压缩、转换、加水印、OCR 识别等 30+ 功能', path: '/pdf/', enabled: true, type: 'newtab' },
{ id: 'trwebocr', name: '图片转文字 OCR', icon: '', logoImg: trwebocrLogo, description: '中文离线 OCR识别图片中的文字和表格', path: '/ocr/', enabled: true, type: 'newtab' }, { id: 'trwebocr', name: '图片转文字 OCR', icon: '', logoImg: trwebocrLogo, description: '中文离线 OCR识别图片中的文字和表格', port: 18083, enabled: true, type: 'newtab' },
{ id: 'libretranslate', name: '智能翻译', icon: '', logoImg: libretranslateLogo, description: '中英互译,支持文本和文件翻译,数据不出内网', path: '/translate/', enabled: true, type: 'newtab' }, { id: 'libretranslate', name: '智能翻译', icon: '', logoImg: libretranslateLogo, description: '中英互译,支持文本和文件翻译,数据不出内网', path: '/translate/', enabled: true, type: 'newtab' },
] ]
}, },