wang_xy преди 1 година
родител
ревизия
1fc7f7885e
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  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()