Skip to content
Tauri 中文网

棕地模式

这是默认模式。

🌐 This is the default pattern.

这是使用 Tauri 的最简单和最直接的模式,因为它尽量与现有的前端项目兼容。简而言之,它尽量不要求现有的 Web 前端在浏览器中使用之外的任何额外内容。并非现有浏览器应用中能够运行的所有内容都能开箱即用。

🌐 This is the simplest and most straightforward pattern to use Tauri with, because it tries to be as compatible as possible with existing frontend projects. In short, it tries to require nothing additional to what an existing web frontend might use inside a browser. Not everything that works in existing browser applications will work out-of-the-box.

如果你对布朗菲尔德软件开发不太熟悉,[布朗菲尔德维基百科文章]提供了一个不错的摘要。对于 Tauri 来说,现有的软件是当前的浏览器支持和行为,而不是旧系统。

🌐 If you are unfamiliar with Brownfield software development in general, the Brownfield Wikipedia article provides a nice summary. For Tauri, the existing software is current browser support and behavior, instead of legacy systems.

🌐 Configuration

因为棕地模式是默认模式,所以不需要设置配置选项。要显式设置它,可以在 tauri.conf.json 配置文件中使用 app > security > pattern 对象。

🌐 Because the Brownfield pattern is the default pattern, it doesn’t require a configuration option to be set. To explicitly set it, you can use the app > security > pattern object in the tauri.conf.json configuration file.

{
"app": {
"security": {
"pattern": {
"use": "brownfield"
}
}
}
}

棕地模式没有额外的配置选项。

🌐 There are no additional configuration options for the brownfield pattern.


Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站