功能: 启用 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
+5 -1
View File
@@ -20,7 +20,11 @@
}
],
"security": {
"csp": null
"csp": null,
"assetProtocol": {
"enable": true,
"scope": ["**"]
}
}
},
"bundle": {