Tauri 路径
2024-02-04 11:26 更新
path 模块提供用于处理文件和目录路径的实用程序。
当 build.withGlobalTauri in 设置为 时,也可以访问此包。window.__TAURI__.pathtauri.conf.jsontrue
必须将 API 添加到 tauri.allowlist.path 中:tauri.conf.json
{
"tauri": {
"allowlist": {
"path": {
"all": true, // enable all Path APIs
}
}
}
}建议仅将您使用的 API 列入许可列表,以获得最佳捆绑包大小和安全性。
以上内容是否对您有帮助:

免费 AI IDE


更多建议: