(document.documentElement.clientWidth <= 1024) {
                  
                  
                          return this.projects.slice(0, 2);
                  
                  
                        } else {
                  
                  
                          return this.projects;
                  
                  
                        }
                  
                  
                      }
                  
                  
                  
                  
                  
                  но разрешение не определяет, что не так?
                  
                  
                
у тебя document.documentElement.clientWidth не реактивное
onResize(e) { this.screen.width = window.innerWidth; this.screen.height = window.innerHeight; this.$store.commit('screen', this.screen); this.$store.commit('isMobile', this.screen.width < 768); },
Обсуждают сегодня