Daniel Supernault 6 年之前
父節點
當前提交
79e9337f94
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      resources/assets/js/components/Profile.vue

+ 2 - 0
resources/assets/js/components/Profile.vue

@@ -791,10 +791,12 @@ export default {
 					'id[]': this.profileId
 				}
 			}).then(res => {
+				if(res.data.length) {
 					this.relationship = res.data[0];
 					if(res.data[0].blocking == true) {
 						this.warning = true;
 					}
+				}
 			});
 		},