| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <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>
|