feat: 更新用户设置模块

This commit is contained in:
2026-08-25 19:50:20 +08:00
parent 98d74918a0
commit 0b9cbc9d81
10 changed files with 144 additions and 21 deletions

View File

@@ -1,11 +1,14 @@
<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { getOverview, saveOverview } from "@/utils/profile";
import { getOverview, saveOverview, getPlan, savePlan } from "@/utils/profile";
onLaunch(() => {
if (getOverview().length === 0) {
saveOverview(['weight', 'sleep', 'sport', 'bloodPressure'])
}
if (getPlan().length === 0) {
savePlan(['weight', 'sleep', 'sport', 'bloodPressure'])
}
console.log("App Launch");
});
onShow(() => {