浏览代码

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