Skip to content

Commit 613d5af

Browse files
committed
fixed some bugs, nuxt icon
1 parent 1084395 commit 613d5af

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

components/Story.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<span class="score">{{ story.points }}</span>
44
<span class="title">
55
<template v-if="story.url && !story.url.startsWith(' item?id=')">
6-
<a href="{story.url}" target="_blank" rel="noreferrer">
6+
<a :href="story.url" target="_blank" rel="noreferrer">
77
{{ story.title }}
88
</a>
99
<span class="host">{{story.domain}}</span>

layouts/default.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<template>
2+
23
<Head>
34
<Meta charset="UTF-8" />
45
<Meta name="viewport" content="width=device-width, initial-scale=1.0" />
56
<Meta name="description" content="Nuxt Hackernews" />
67
<Title>NuxtJs - Hacker News</Title>
8+
<Link ref="icon" type="image/x-icon" href="/favicon.png" />
79
</Head>
810
<header class="header">
911
<nav class="inner">
@@ -22,7 +24,7 @@
2224
<a href="/job">
2325
<strong>Jobs</strong>
2426
</a>
25-
<a class="github" href="https://github.com/withastro/astro" target="_blank" rel="noreferrer">
27+
<a class="github" href="https://github.com/nuxt/framework" target="_blank" rel="noreferrer">
2628
Built with Nuxt JS
2729
</a>
2830
</nav>
@@ -31,5 +33,5 @@
3133
</template>
3234

3335
<style>
34-
@import "@/assets/css/global.css"
36+
@import "@/assets/css/global.css";
3537
</style>

pages/[...site].vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<script setup lang="ts">
2525
const route = useRoute()
2626
const type = route.params.site[0] ?? "top";
27-
console.log(type)
2827
let pageID: string = "1"
2928
if (route.query.page) pageID = route.query.page.toString()
3029
const page: number = parseInt(pageID);

pages/stories/[id].vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
const route = useRoute()
3030
const storyID = route.params.id
3131
const story = await useGetStory(storyID)
32+
console.log(story)
3233
</script>

public/favicon.png

1.93 KB
Loading

0 commit comments

Comments
 (0)