provide() {
return {
tb: () => this.data
};
},
inject: ["tb"],
computed: {
list() {
return this.tb();
}
},
watch: {
list: {
deep: true,
handler(e) {
console.log("watch", e);
}
}
},
provide() {
return {
tb: () => this.data
};
},
inject: ["tb"],
computed: {
list() {
return this.tb();
}
},
watch: {
list: {
deep: true,
handler(e) {
console.log("watch", e);
}
}
},