mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-05 07:40:16 +08:00
优化:初始设置页面自动创建默认配置文件
当检测到 OpenClaw CLI 已安装但 openclaw.json 不存在时: 1. 自动创建包含合理默认值的配置文件(mode:local, tools:full 等) 2. 如果自动创建失败,显示「一键初始化配置」按钮供手动操作 3. 新增 init_openclaw_config API(dev-api.js + Tauri Rust 后端) 4. 用户不再需要去终端手动执行 openclaw configure
This commit is contained in:
@@ -20,6 +20,7 @@ pub fn run() {
|
||||
config::write_mcp_config,
|
||||
config::get_version_info,
|
||||
config::check_installation,
|
||||
config::init_openclaw_config,
|
||||
config::check_node,
|
||||
config::check_node_at_path,
|
||||
config::scan_node_paths,
|
||||
|
||||
Reference in New Issue
Block a user