<template>
  <div class="loading_page">
    <img src="../img/loading.gif" />
  </div>
</template>

<script>
export default {
  props: {
    isLoading: {
      type: Boolean,
      default: true,
    },
    isManufacturer: {
      type: String,
      default: "",
    },
  },
  computed: {

  },
  watch: {
    isLoading: function (newValue) {
      if (!newValue) {
        if (this.isManufacturer === "manufacturer") {
          this.$router.replace({ path: "/uploadInfor" });
        } else {
          this.$router.replace({ path: "/inforList" });
        }
      }
    },
  },
  created() {
    console.log('1')
  },
};
</script>

<style scoped lang="less">
.loading_page {
  display: flex;
  justify-content: center;
  align-items: center;
  img {
    transform: translateY(8rem);
  }
}
</style>
