watch:{
      '$route':'isTab'

    },

methods:{
      isTab(){
        if(this.$route.path==='/index'||this.$route.path==='/gameHall'||this.$route.path==='/car'||this.$route.path==='/par'){
          this.$refs.tabItem.style.display = 'flex';
        }else {
          this.$refs.tabItem.style.display = 'none';
        }
      }
    }

  简单明了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
猜你喜欢
  • 2021-10-02
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
相关资源
相似解决方案