Tauri configDir
configDir():Promise
<string
>
返回用户配置目录的路径。
特定于平台
- Linux操作系统:解析为
$XDG_CONFIG_HOME
$HOME/.config
- macOS:解析为
$HOME/Library/Application Support
- windows:解析为
{FOLDERID_RoamingAppData}
例
import { configDir } from '@tauri-apps/api/path';
const configDirPath = await configDir();
Since: 1.0.0
Returns: Promise
<string
>