docs: 整理Bug

This commit is contained in:
TYt50
2026-01-28 15:08:46 +08:00
parent 03225746f6
commit 30700a9724
2 changed files with 23 additions and 14 deletions

View File

@@ -1,38 +1,38 @@
@echo off @echo off
setlocal enabledelayedexpansion
echo ========================================== echo ==========================================
echo 2FA 账号工具 - 一键环境安装 echo 2FA ACCOUNT TOOL - Setup Utility
echo ========================================== echo ==========================================
echo. echo.
:: 检查 Node.js 是否安装 :: Check for Node.js
node -v >nul 2>&1 node -v >nul 2>&1
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
echo [错误] 未检测到 Node.js 环境! echo [ERROR] Node.js is not installed!
echo 请先安装 Node.js (建议 LTS 版本): https://nodejs.org/ echo Please download and install Node.js from https://nodejs.org/
pause pause
exit /b exit /b
) )
echo [1/2] 正在清理旧的依赖缓存... echo [1/2] Cleaning up old installation files...
if exist node_modules ( if exist node_modules (
rd /s /q node_modules rd /s /q node_modules
) )
echo [2/2] 正在安装项目依赖... echo [2/2] Installing dependencies (npm install)...
call npm install call npm install
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
echo. echo.
echo [错误] 依赖安装失败,请检查网络连接。 echo [ERROR] Dependency installation failed.
echo Please check your internet connection.
pause pause
exit /b exit /b
) )
echo. echo.
echo ========================================== echo ==========================================
echo 安装完成!现在可以运行 start.vbs 启动应用。 echo SETUP SUCCESSFUL!
echo You can now run 'start.vbs' to launch.
echo ========================================== echo ==========================================
echo. echo.
pause pause

View File

@@ -1,6 +1,15 @@
@echo off @echo off
echo 正在准备导出账号数据... echo ==========================================
node export.js echo Exporting Account Data...
echo ==========================================
echo. echo.
echo 导出完成!按任意键退出。
pause > nul node export.js
echo.
echo ==========================================
echo EXPORT COMPLETE!
echo Check file: accounts_export.txt
echo ==========================================
echo.
pause