这不仅仅是赋值,它的破坏赋值。
这条线:
const {property, $rxFirebase: {actions: {properties}}} = this
等于
const property = this.property, properties = this.$rxFirebase.actions.properties;
所以你不能再添加一个
properties
变量,因为它已声明。你应该为第二个添加不同的名称
性质
声明,如下:
const {property, $rxFirebase: {actions: {properties}, sources: {properties: myProperties }}} = this; // where myProperties some name for variable
console.log(myProperties === this.$rxFirebase.sources.properties); // true