fix: 修复表单标签样式和部署脚本顺序问题

refactor: 统一表单组件标签样式为冒号后缀
style: 调整按钮颜色和表单布局
fix(frontend): 添加取消强退的提示信息
chore: 调整部署脚本步骤顺序
This commit is contained in:
zhangtao
2025-07-25 00:31:01 +08:00
parent 80179adb73
commit 48bbda2f55
23 changed files with 69 additions and 82 deletions
+10 -10
View File
@@ -38,9 +38,17 @@ check_dependencies() {
log "✅ 所有依赖检查通过"
}
# 停止并删除容器
stop_and_remove_containers() {
log "==========🗑️ 第三步:终止容器...=========="
[ -f "docker-compose.yaml" ] || { log "❌ docker-compose.yaml 文件未找到"; exit 1; }
docker compose down
log "✅ 容器已停止并删除"
}
# 更新代码
update_code() {
log "==========🔍 第步:检查项目...=========="
log "==========🔍 第步:检查项目...=========="
cd "${WORK_DIR}" || { log "❌ 无法进入工作目录:${WORK_DIR}"; exit 1; }
if [ -d "${PROJECT_NAME}/" ]; then
log "🔄 项目已存在,开始更新代码"
@@ -56,14 +64,6 @@ update_code() {
fi
}
# 停止并删除容器
stop_and_remove_containers() {
log "==========🗑️ 第四步:终止容器...=========="
[ -f "docker-compose.yaml" ] || { log "❌ docker-compose.yaml 文件未找到"; exit 1; }
docker compose down
log "✅ 容器已停止并删除"
}
# 构建前端
build_frontend() {
log "==========🔍 第五步:检查前端...=========="
@@ -107,8 +107,8 @@ main() {
log "==========🚀 开始部署流程=========="
check_permissions
check_dependencies
update_code
stop_and_remove_containers
update_code
build_frontend
build_image
start_containers