소스 검색

修改微信绑定

11wqe1 3 주 전
부모
커밋
9f0bc79c18
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/userInfoA.vue

+ 1 - 1
src/components/userInfoA.vue

@@ -679,7 +679,7 @@ export default {
 				.post(API_CONFIG.baseUrl, params)
 				.then((res) => {
 					console.log(res.data);
-					if (!res.data.length) {
+					if (!res.data[0].length) {
 						this.addOpenid(openid);
 					} else {
 						let uname = res.data[0].map(item => item.username).join(',');