vue动态改变对象的值

 
this.dataBox[index].showDeleteModal = mark
      this.$set(this.dataBox, index, this.dataBox[index])
数组里面对象的动态属性发生变化,直接改变属性,值是不刷新的
closeDeleteModal(item) {
      item.showDeleteModal = false
    },
temp.forEach((item) => {
item.videoId = item.objectId
        item.showDeleteModal = false
        let target = item.path
        item.videoImageSrc =
              '/hpcnasservice/nasService/downloadfile?filePath=/unistarpc/' +
              target +
              '.png'
        item.videoSrc =
              '/hpcnasservice/nasService/downloadfile?filePath=/unistarpc/' +
              target
      })

转载于:https://www.cnblogs.com/coconutGirl/p/10259879.html

你可能感兴趣的:(vue动态改变对象的值)