From a4dfa51c1713cb5a1b2b097178f6c84c80caa707 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 Date: Sat, 28 Sep 2024 00:13:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Improve=20code=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nft/url/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/nft/url/index.vue b/pages/nft/url/index.vue index e987b891..73502b18 100644 --- a/pages/nft/url/index.vue +++ b/pages/nft/url/index.vue @@ -644,8 +644,8 @@ export default class FetchIndex extends Vue { logTrackerEvent(this, 'NFTUrlMint', 'CrawlUrlData', this.url, 1); const { data } = await this.$axios.get(`/crawler/?url=${encodeURIComponent(this.encodedURL)}&wallet=${this.address}`) const { title, description, author, body, images = [] } = data; - let {keywords} = data; - if(isNewsPress) { + let { keywords } = data; + if (isNewsPress) { keywords = keywords ? `${keywords},NewsPress` : 'NewsPress'; } if (!body) { throw new Error('CANNOT_CRAWL_THIS_URL') }