Files
mixvideo-v2/apps/desktop/src-tauri/tauri.conf.json
imeepos 44f3f40705 fix: 修复缩略图显示权限问题,使用base64数据URL
解决asset.localhost访问权限问题:
- 添加read_thumbnail_as_data_url命令读取文件并转换为base64数据URL
- 避免使用convertFileSrc的asset.localhost协议访问问题
- 添加base64依赖支持文件编码

 优化缩略图加载:
- 使用数据URL直接在img标签中显示缩略图
- 正确处理Windows长路径前缀 \\\\?\\
- 统一错误处理和降级机制

 技术改进:
- 移除不再使用的convertFileSrc导入
- 添加详细的控制台日志便于调试
- 确保跨平台文件路径兼容性

现在缩略图可以正确显示,不会因为权限问题导致加载失败。
2025-07-15 22:38:22 +08:00

64 lines
1.5 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "MixVideo Desktop",
"version": "0.1.9",
"identifier": "com.mixvideo.desktop",
"build": {
"beforeDevCommand": "vite",
"devUrl": "http://localhost:5173",
"beforeBuildCommand": "pnpm build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "MixVideo Desktop",
"width": 1200,
"height": 800,
"minWidth": 800,
"minHeight": 600,
"center": true,
"resizable": true,
"maximizable": true,
"minimizable": true,
"closable": true
}
],
"security": {
"csp": null,
"assetProtocol": {
"enable": true,
"scope": ["**"]
}
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"publisher": "imeepos",
"copyright": "Copyright © 2024 imeepos. All rights reserved.",
"category": "Productivity",
"shortDescription": "MixVideo Desktop - 多媒体处理桌面应用",
"longDescription": "MixVideo Desktop 是一个基于 Tauri 构建的跨平台桌面应用,提供强大的多媒体处理功能。",
"externalBin": [],
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
},
"macOS": {
"frameworks": [],
"minimumSystemVersion": "10.13",
"exceptionDomain": ""
}
}
}