yuxingxing 2 years ago
parent
commit
0b7fa7763d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/goods_details/index.vue

+ 2 - 2
pages/goods_details/index.vue

@@ -1133,9 +1133,9 @@ export default {
 		 * 加入购物车
 		 */
 		goCat: function (news) {
-			let that = this,
-				productSelect = that.productValue[this.attrValue];
+			let that = this
 			that.currentPage = false;
+			this.$set(this.attr, "productSelect", this.storeInfo);
 			//打开属性
 			if (that.attrValue) {
 				//默认选中了属性,但是没有打开过属性弹窗还是自动打开让用户查看默认选中的属性