docs: update Air installation command from cosmtrek/air to air-verse/air

This commit is contained in:
MEKXH
2026-02-04 19:08:11 +08:00
committed by begoniezhao
parent 10c2be0e6e
commit 9a3f09c983
3 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ make dev-frontend # 修改前端代码自动热重载(无需重启)
### 1. 安装 Air
```bash
go install github.com/cosmtrek/air@latest
go install github.com/air-verse/air@latest
```
### 2. 创建配置文件

View File

@@ -45,7 +45,7 @@ make dev-frontend
```bash
# 安装 Air
go install github.com/cosmtrek/air@latest
go install github.com/air-verse/air@latest
# 确保在 PATH 中
export PATH=$PATH:$(go env GOPATH)/bin

View File

@@ -127,7 +127,7 @@ if command -v air &> /dev/null; then
log_success "Air 已安装(支持热重载)"
else
log_warning "Air 未安装(可选,用于热重载)"
log_info "安装命令: go install github.com/cosmtrek/air@latest"
log_info "安装命令: go install github.com/air-verse/air@latest"
fi
# 检查 npm