feat: 重构游戏进度管理并添加持久化存储
- 引入 Pinia 状态管理库及持久化插件,统一管理游戏进度 - 新增游戏进度存储模块,支持关卡完成状态的保存与恢复 - 重构各关卡页面,移除本地存储逻辑,统一使用状态管理 - 更新第二关进度展示,根据实际完成情况动态显示进度条 - 在开始页面添加进度重置功能,支持重新开始游戏 - 调整依赖版本,确保 Vue 2/3 兼容性
Showing
| ... | @@ -50,9 +50,11 @@ | ... | @@ -50,9 +50,11 @@ |
| "@dcloudio/uni-quickapp-webview": "3.0.0-3090620231104001", | "@dcloudio/uni-quickapp-webview": "3.0.0-3090620231104001", | ||
| "clipboard": "^2.0.11", | "clipboard": "^2.0.11", | ||
| "dayjs": "^1.11.19", | "dayjs": "^1.11.19", | ||
| "pinia": "^3.0.4", | "pinia": "^2.0.36", | ||
| "pinia-plugin-persistedstate": "^3.2.1", | |||
| "uview-plus": "^3.7.0", | "uview-plus": "^3.7.0", | ||
| "vue": "^3.2.45", | "vue": "^3.2.45", | ||
| "vue-demi": "^0.14.10", | |||
| "vue-i18n": "^9.1.9" | "vue-i18n": "^9.1.9" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| ... | ... |
src/pages/second/part3.vue
0 → 100644
src/static/second/info.webp
0 → 100644
File added
src/static/second/jdt2.webp
0 → 100644
File added
src/static/second/jdt3.webp
0 → 100644
File added
src/static/second/jdt4.webp
0 → 100644
File added
src/stores/game.js
0 → 100644
Please
register
or
sign in
to comment