zhibo/deploy_gift_manage_complete.bat
2026-01-03 19:22:42 +08:00

45 lines
1020 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ========================================
echo 部署完整的礼物管理功能
echo ========================================
echo.
echo [步骤1] 执行数据库脚本
echo 请依次执行以下SQL文件
echo 1. create_gift_table.sql - 创建礼物表
echo 2. add_gift_manage_menu.sql - 添加菜单
echo.
pause
echo.
echo [步骤2] 清除前端缓存...
cd Zhibo\admin
if exist node_modules\.cache (
rmdir /s /q node_modules\.cache
echo 前端缓存已清除
)
if exist dist (
rmdir /s /q dist
echo dist目录已清除
)
echo.
echo [步骤3] 重新构建前端...
call npm run build:prod
echo.
echo ========================================
echo 部署完成!
echo ========================================
echo.
echo 现在请:
echo 1. 清除浏览器缓存 (Ctrl+Shift+Delete)
echo 2. 重新登录后台
echo 3. 在"直播管理"下查看:
echo - 打赏记录:查看礼物打赏记录
echo - 礼物管理:管理礼物列表(添加/编辑/删除)
echo.
pause