From dd2945b752a0f3146994c4bf2f01d5998f485f2b Mon Sep 17 00:00:00 2001 From: surmon-china Date: Fri, 31 Dec 2021 23:31:04 +0800 Subject: [PATCH] feat: v3.3.1 --- package.json | 2 +- src/components/comment/list/item.vue | 27 +++++++++++++++++++++------ src/components/comment/list/ua.vue | 4 ++-- src/store/comment.ts | 6 +++++- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 471c428d9..220ab3671 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "surmon.me", - "version": "3.3.0", + "version": "3.3.1", "description": "Surmon.me blog", "author": { "name": "Surmon", diff --git a/src/components/comment/list/item.vue b/src/components/comment/list/item.vue index 954f312ee..ba41effa8 100644 --- a/src/components/comment/list/item.vue +++ b/src/components/comment/list/item.vue @@ -30,9 +30,11 @@ - {{ comment.ip_location.country }} - - {{ comment.ip_location.city }} + {{ comment.ip_location.country_code || comment.ip_location.country }} + diff --git a/src/store/comment.ts b/src/store/comment.ts index 303f1f662..55855d71e 100755 --- a/src/store/comment.ts +++ b/src/store/comment.ts @@ -33,8 +33,12 @@ export interface Comment { dislikes: number ip?: string ip_location?: { - city: string country: string + country_code: string + region: string + region_code: string + city: string + zip: string } create_at: string update_at: string