wang_xy před 1 rokem
rodič
revize
1fc7f7885e
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      songhua-ui/src/views/index/index.vue

+ 4 - 4
songhua-ui/src/views/index/index.vue

@@ -280,10 +280,10 @@ export default {
     //地图
     this.getMapByPerson();
     let _this = this;
-    // setInterval(function () {
-    //   _this.money += Math.round(Math.random() * 100);
-    //   _this.peopleNum += Math.round(Math.random() * 100);
-    // }, 3000)
+    setInterval(function () {
+      _this.money += Math.round(Math.random() * 100);
+      _this.peopleNum += Math.round(Math.random() * 100);
+    }, 3000)
   },
   created() {
     // this.selectShipRoute()