diff --git a/src/components/People.vue b/src/components/People.vue index 1237689..badaa49 100644 --- a/src/components/People.vue +++ b/src/components/People.vue @@ -33,17 +33,25 @@
-
+
別名: - {{ data.info.also_known_as?.join('、') }} + {{ + data.info.also_known_as?.slice(0, 10).join('、') + }}
-
+
生日:
- {{ data.info.birthday }} + {{ data.info.birthday || '-' }} ({{ getAge() }}歲)
@@ -52,10 +60,10 @@
- + - +
@@ -72,11 +80,11 @@
- {{ item.name }} - + {{ item.name }} + {{ item.vote_average.toFixed(1) }}
@@ -43,8 +43,8 @@ const props = defineProps({ }, type: { type: String, - default: 'movie' - } + default: 'movie', + }, }) const formatData = computed(() => { return props.data.map(e => { @@ -54,5 +54,19 @@ const formatData = computed(() => { } }) }) + - \ No newline at end of file +