watch: {
isOnchange: {
handler(newVal, oldVal) {
if (newVal !== oldVal) {
const userId = String(newVal.userId)
const nums = userId.split("")
const startSec = 5;
for (let index in nums) {
this.waterMarks.push({
start: startSec + Number(nums[index]),
area: Number(index) + 1
})
}
console.log('waterMarks:', this.waterMarks)
this.playVideo(newVal)
}
},
immediate: true
},
immediate: true