From d78dd8d42e97213c4e295c84a3986289e7450bad Mon Sep 17 00:00:00 2001
From: Ironsp <1522278303@qq.com>
Date: Sat, 18 Jul 2026 11:04:23 +0800
Subject: [PATCH] =?UTF-8?q?feat=20=E4=BC=98=E5=8C=96=E6=9E=B6=E6=9E=84?=
=?UTF-8?q?=E8=AE=BE=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 19 ++++++-------------
start.sh | 25 +++++++++++++++++++++++++
2 files changed, 31 insertions(+), 13 deletions(-)
create mode 100644 start.sh
diff --git a/README.md b/README.md
index b0152d1..7bd5e88 100644
--- a/README.md
+++ b/README.md
@@ -6,28 +6,21 @@
## 配套后端代码仓库地址
-| 介绍 | 项目名 | 项目地址 |
-|------------|:-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 介绍 | 项目名 | 项目地址 |
+| ----------------- | :--------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 🔥 分布式集群框架 | RuoYi-Vue-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Vue-Plus)
- [GitHub](https://github.com/dromara/RuoYi-Vue-Plus)
- [GitCode](https://gitcode.com/dromara/RuoYi-Vue-Plus) |
-| 🔥 微服务框架 | RuoYi-Cloud-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Cloud-Plus)
- [GitHub](https://github.com/dromara/RuoYi-Cloud-Plus)
- [GitCode](https://gitcode.com/dromara/RuoYi-Cloud-Plus) |
+| 🔥 微服务框架 | RuoYi-Cloud-Plus | - [Gitee](https://gitee.com/dromara/RuoYi-Cloud-Plus)
- [GitHub](https://github.com/dromara/RuoYi-Cloud-Plus)
- [GitCode](https://gitcode.com/dromara/RuoYi-Cloud-Plus) |
## 分支说明
-- ts分支(稳定发布主分支 生产可用)
+- main分支(稳定发布主分支 生产可用)
- dev分支(开发分支 开发过程中使用)
## 前端运行
```bash
-# 安装依赖
-npm install --registry=https://registry.npmmirror.com
-
-# 启动服务
-npm run dev
-
-# 构建生产环境
-npm run build:prod
-
+# 启动命令
+./start.sh
# 前端访问地址 http://localhost:80
```
diff --git a/start.sh b/start.sh
new file mode 100644
index 0000000..01f3f7d
--- /dev/null
+++ b/start.sh
@@ -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