pref(ChangeLog): update commits list

This commit is contained in:
thehrz 2023-08-02 14:13:15 +08:00
parent bb697f995d
commit d80af3c4c2
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -1,6 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
interface Commit { interface Commit {
sha: string sha: string
created: string
commit: { commit: {
message: string message: string
} }
@ -32,7 +33,7 @@ const { isFetching, error, data } = useFetch('https://git.thehrz.net/api/v1/repo
<v-list-item <v-list-item
v-for="commit in data" v-for="commit in data"
:key="commit.commit.message" :title="commit.commit.message" :key="commit.commit.message" :title="commit.commit.message"
:subtitle="`${commit.sha.slice(0, 6)} ${commit.author.username}`" :subtitle="`${commit.sha.slice(0, 6)} ${commit.created}`"
/> />
</v-list> </v-list>
</v-card> </v-card>