pref(ChangeLog): add html_url

This commit is contained in:
thehrz 2023-08-14 10:08:04 +08:00
parent f7ea02e8fe
commit 1c0453a668
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -2,6 +2,7 @@
interface Commit { interface Commit {
sha: string sha: string
created: string created: string
html_url: string
commit: { commit: {
message: string message: string
} }
@ -34,6 +35,7 @@ const { isFetching, error, data } = useFetch('https://git.thehrz.net/api/v1/repo
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.created}`" :subtitle="`${commit.sha.slice(0, 6)} ${commit.created}`"
:to="commit.html_url"
/> />
</v-list> </v-list>
</v-card> </v-card>