添加复制和下载按钮,统计字数功能

This commit is contained in:
2025-10-12 19:32:52 +08:00
parent 34439f5cab
commit f8bd6388d7
77 changed files with 6374 additions and 599 deletions

31
build.bat Normal file
View File

@@ -0,0 +1,31 @@
@echo off
setlocal enabledelayedexpansion
echo ============== 开始执行构建 ==============
:: 关键:添加 call 确保 npm 执行完后继续执行后续命令
call npm run build
:: 检查构建是否成功
if %errorlevel% neq 0 (
echo 【错误】构建失败!请查看上面的错误信息
pause
exit /b 1
)
echo ============== 构建成功,准备启动服务器 ==============
echo 正在进入 dist 目录...
cd dist || (
echo 【错误】找不到 dist 目录!构建可能未生成该目录
echo 当前目录:%cd% (请确认该目录下是否有 dist 文件夹)
pause
exit /b 1
)
echo ============== 服务器启动中(端口 8080 ==============
echo 提示:服务器启动后会一直运行,访问 http://localhost:8080 查看
echo 若要停止服务器,请按 Ctrl + C然后按 Y 确认
python -m http.server 8080
:: 服务器停止后执行
echo ============== 服务器已停止 ==============
pause