wenliming 2 年之前
父節點
當前提交
b1914e4685
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      pages/treasure/index.vue
  2. 1 1
      pages/treasure/invite.vue

+ 2 - 0
pages/treasure/index.vue

@@ -147,10 +147,12 @@ export default {
 		setTimeout(() => {
 			this.checkInstall()
 				.then(() => {
+					console.log(this.detail);
 					if (this.detail.srcContentId && this.detail.postUserInfo && this.detail.postUserInfo.nickName) {
 						let url = `https://twitter.com/${this.detail.postUserInfo.nickName}/status/${this.detail.srcContentId}`;
 						window.location.replace(url);
 					}
+					this.isLoading = false;
 				})
 				.catch(() => {
 					this.isLoading = false;

+ 1 - 1
pages/treasure/invite.vue

@@ -156,9 +156,9 @@ export default {
 						let url = `https://twitter.com/${this.detail.inviteUserInfo.nickName}/status/${this.detail.repostSrcContentId}`;
 						window.location.replace(url);
 					}
+					this.isLoading = false;
 				})
 				.catch(() => {
-					this.isLoading = false;
 					this.setTreasureInfo();
 				});
 		}, 1000);