W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
訪問系統(tǒng) shell。 允許您生成子進(jìn)程并使用其默認(rèn)應(yīng)用程序管理文件和 URL。
當(dāng) build.withGlobalTauri
in 設(shè)置為 時,也可以訪問此包。window.__TAURI__.shell
tauri.conf.json
true
這些 API 必須添加到 tauri.allowlist.shell
中:tauri.conf.json
{
"tauri": {
"allowlist": {
"shell": {
"all": true, // enable all shell APIs
"execute": true, // enable process spawn APIs
"sidecar": true, // enable spawning sidecars
"open": true // enable opening files/URLs using the default program
}
}
}
}
建議僅將用于優(yōu)化捆綁包大小和安全性的 API 列入允許列表。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: