邹能昇 2 月之前
父節點
當前提交
f51d0a9d9d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      nova-werun/components/home/index.js

+ 2 - 0
nova-werun/components/home/index.js

@@ -328,6 +328,7 @@ Component({
                 try {
                     let saveDate = await r.save();
                     this.order()
+                    this.gettoday()
                     console.log("步数修改成功");
                 } catch (error) {
                     console.error("保存数据时出现错误:", error);
@@ -349,6 +350,7 @@ Component({
                 try {
                     let saveDate2 = await Comment.save();
                     this.order()
+                    this.gettoday()
                     // console.log(saveDate2);
                     console.log("步数保存成功");
                 } catch (error) {