邹能昇 2 months ago
parent
commit
f51d0a9d9d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      nova-werun/components/home/index.js

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

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