diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-25 22:34:22 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-25 22:34:22 +0200 |
commit | 4bbf220296765a20c3ba03c5351b21618a835424 (patch) | |
tree | da6b685a7496bceb928d397f5a073edf1083af44 /packages/client/src/views/RepositoryAbout.vue | |
parent | 7d27f9c7f1b57693dfdc0dd289015406b90984ec (diff) |
Reformated the client code a bit
Diffstat (limited to 'packages/client/src/views/RepositoryAbout.vue')
-rw-r--r-- | packages/client/src/views/RepositoryAbout.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/client/src/views/RepositoryAbout.vue b/packages/client/src/views/RepositoryAbout.vue index dc759d1..c72ee12 100644 --- a/packages/client/src/views/RepositoryAbout.vue +++ b/packages/client/src/views/RepositoryAbout.vue @@ -35,8 +35,8 @@ export default defineComponent({ const is_loading: Ref<boolean> = ref(true); const fetch_failed: Ref<string> = ref(""); - const fetchReadme = async(repository: string) => { - const readme_data: Tree = await fetchData(`repos/${repository}/tree?path=README.md`, fetch_failed, is_loading, "tree"); + async function fetchReadme(repository: string) { + const readme_data = await fetchData(`repos/${repository}/tree?path=README.md`, fetch_failed, is_loading, "tree") as Tree; if(readme_data && typeof readme_data.content === "string") { readme.value = readme_data.content; @@ -58,4 +58,4 @@ export default defineComponent({ <style lang="scss" scoped> @import "~vue-loading-overlay/dist/vue-loading.css"; -</style> +</style>
\ No newline at end of file |