wang_xy 1 vuosi sitten
vanhempi
commit
1fc7f7885e
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  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()