panhui 3 yıl önce
ebeveyn
işleme
beab9b46e2
2 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 1 0
      src/components/auction/info.vue
  2. 5 1
      src/views/auction/List.vue

+ 1 - 0
src/components/auction/info.vue

@@ -146,6 +146,7 @@ export default {
                     font-size: 12px;
                     color: #ff7f1f;
                     line-height: 22px;
+                    white-space: nowrap;
                     .van-count-down {
                         font-size: 12px;
                         color: #ff7f1f;

+ 5 - 1
src/views/auction/List.vue

@@ -156,7 +156,11 @@ export default {
     },
     mounted() {
         this.$store.dispatch('getUsedBuy');
-        if (this.$route.query.auctionType) {
+        if (
+            this.$route.query.auctionType &&
+            this.$route.query.auctionType !== undefined &&
+            this.$route.query.auctionType !== 'undefined'
+        ) {
             this.auctionType = this.$route.query.auctionType;
         }
         if (this.$route.query.status) {