In Vuejs I have to delete a section when I click on "X" but there is some error
P粉463840170
P粉463840170 2024-03-22 09:04:24
0
1
322

Output image of error on console

This is the code picture showing the error

P粉463840170
P粉463840170

reply all(1)
P粉242741921

There is neither a property named tab nor a property named Index in your code Define the data section and add these properties

data() {
 return {
  tab: null,
  Index: null
 }
}

Also, I don't see any use of these variables other than console.log. So if this were true, there would be no need to define the data() part. You can directly emit parameters like

methods: {
  removeSection(idx) {
   this.$emit('remove', idx);
  }
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template