<animate-number
   from="0"
   :to="onLineNumber"
   :key="orgListKey"
   duration="1500"
   easing="easeOutQuad"
   :formatter="formatter"
 ></animate-number>
 export default {
  name: "numberShow",
  data() {
    return {
      orgListKey: new Date().getTime(),
    };
  },
  computed: {
    onLineNumber() {
      return this.$store.getters.onLineNumber;
    },
  },
  watch: {
    onLineNumber(newValue, oldValue) {
      this.loadOrgList();
    },
  },
  methods: {
    /**
     * @name:
     * @msg: 改变key值
     * @param {*}
     * @return {*}
     */
    loadOrgList() {
      this.orgListKey++;
    },
  },
};