소스 검색

[edit][console]

zhangwei 2 년 전
부모
커밋
bbf76798c9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pages/treasure/invite.vue

+ 2 - 2
pages/treasure/invite.vue

@@ -153,7 +153,7 @@ export default {
 			return {
 				detail: data.data,
 				pageLink,
-				headers: JSON.stringify(req),
+				headers: JSON.stringify(req.headers),
 			};
 		}
 	},
@@ -161,7 +161,7 @@ export default {
 		this.getConfig();
 	},
 	mounted() {
-		console.log('headers', this.headers);
+		console.log('headers', JSON.parse(this.headers));
 		this.setCookieMid();
 		Cookies.set(this.detail.postId, JSON.stringify({ inviteCode: this.$route.params.id, channel: this.$route.params.channel }), { expires: 100 });
 		this.setTreasureInfo();