There is neither an attribute called tab nor Index in your code Define a data section and add those attributes
data() {
return {
tab: null,
Index: null
}
}
Also I don't see any usage of those variables other than in console.log. So if that's true then no need define the data() section. You can directly emit the parameter like
发布评论
评论(1)
您的代码中既没有名为 tab 的属性,也没有名为 Index 的属性
定义数据部分并添加这些属性
此外,除了
console.log
中之外,我没有看到这些变量的任何用法。因此,如果这是真的,则无需定义
data()
部分。您可以直接发出参数,例如There is neither an attribute called tab nor Index in your code
Define a data section and add those attributes
Also I don't see any usage of those variables other than in
console.log
.So if that's true then no need define the
data()
section. You can directly emit the parameter like