feat 优化架构设计

This commit is contained in:
Ironsp
2026-07-18 11:04:23 +08:00
parent d193836c70
commit d78dd8d42e
2 changed files with 31 additions and 13 deletions

25
start.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# 启动命令 : ./start.sh
echo "📦 正在安装依赖..."
pnpm install
echo "🚀 正在启动开发服务器..."
pnpm run dev
echo "⏳ 等待服务器启动..."
sleep 5
echo "🌐 正在打开浏览器..."
if command -v start &> /dev/null; then
# Windows
start http://localhost:80
elif command -v xdg-open &> /dev/null; then
# Linux
xdg-open http://localhost:80
elif command -v open &> /dev/null; then
# macOS
open http://localhost:80
else
echo "⚠️ 请手动打开浏览器访问: http://localhost:80"
fi