panhui 3 vuotta sitten
vanhempi
commit
27b8b5bbe8
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/views/product/HopeMarket.vue

+ 3 - 1
src/views/product/HopeMarket.vue

@@ -308,7 +308,9 @@ export default {
             this.$http
             this.$http
                 .post('/setting/byFlag', { flag: 1 })
                 .post('/setting/byFlag', { flag: 1 })
                 .then(res => {
                 .then(res => {
-                    this.settings = res;
+                    this.settings = res.filter(item => {
+                        return item.pic;
+                    });
                     setTimeout(() => {
                     setTimeout(() => {
                         this.$nextTick(() => {
                         this.$nextTick(() => {
                             this.normalHeight = this.$refs.top.$el.offsetHeight;
                             this.normalHeight = this.$refs.top.$el.offsetHeight;