vue中使用mui出现的bug

template
  
12344566
方法
handleDelete (item, index) {
      let self = this
      var btnArray=['是','否'];
      mui.confirm("Areyou sure?","Message",btnArray,function(){
        self.goodsList = self.goodsList.filter((v, i) => {
          return index !== i
        })
        self.$store.commit("updateAll", self.goodsList)
      })
    }
监听
 goodsList: {
      handler(){
        let self = this
        this.$store.commit("updateAll", this.goodsList);
        self.$nextTick(() => {
          document.querySelectorAll(".mui-btn")[0].style = ''
          document.querySelectorAll(".mui-slider-handle")[0].style = ''
        })
      },
      deep: true
    }

你可能感兴趣的:(vue中使用mui出现的bug)