feat: 更新用户设置模块
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user