|
|
@@ -1,5 +1,35 @@
|
|
|
-# Vue 3 + TypeScript + Vite
|
|
|
+# 许愿树 H5
|
|
|
|
|
|
-This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
|
+基于 Vue 3 + TypeScript + Vite + Vant 4 的移动端许愿树应用。
|
|
|
|
|
|
-Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
|
|
+## 技术栈
|
|
|
+
|
|
|
+- Vue 3 (Composition API + `<script setup>`)
|
|
|
+- TypeScript
|
|
|
+- Vite 8
|
|
|
+- Vant 4 (移动端 UI)
|
|
|
+- Pinia (状态管理)
|
|
|
+- Vue Router 4
|
|
|
+- Leaflet + 天地图 (地图)
|
|
|
+
|
|
|
+## 开发
|
|
|
+
|
|
|
+```bash
|
|
|
+# 安装依赖
|
|
|
+npm install
|
|
|
+
|
|
|
+# 启动开发服务器
|
|
|
+npm run dev
|
|
|
+```
|
|
|
+
|
|
|
+## 构建与打包
|
|
|
+
|
|
|
+```bash
|
|
|
+# 类型检查并构建
|
|
|
+npm run build
|
|
|
+
|
|
|
+# 打包成 wish.zip
|
|
|
+powershell -Command "Compress-Archive -Path dist\* -DestinationPath wish.zip -Force"
|
|
|
+```
|
|
|
+
|
|
|
+构建产物在 `dist/` 目录,打包后生成 `wish.zip`。
|