功能: 启用 Tauri asset 协议支持 webview 本地图片预览

- Cargo.toml 开启 protocol-asset feature
- tauri.conf.json 配置 assetProtocol scope=**
- Cargo.lock 同步 http-range 依赖
This commit is contained in:
lxy
2026-10-02 01:21:27 +08:00
parent 79ca55620b
commit db8c240d95
3 changed files with 13 additions and 2 deletions
Generated
+7
View File
@@ -1973,6 +1973,12 @@ dependencies = [
"pin-project-lite",
]
[[package]]
name = "http-range"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573"
[[package]]
name = "httparse"
version = "1.10.1"
@@ -4524,6 +4530,7 @@ dependencies = [
"gtk",
"heck 0.5.0",
"http",
"http-range",
"jni",
"libc",
"log",