Skip to content

Commit

Permalink
fix: title for main pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Jan 6, 2025
1 parent e72d6e0 commit 15c866c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/AddBook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const { t } = useI18n({
useScope: 'global'
})
useTitle('Jelu | Add book')
useTitle('Jelu | ' + t('nav.add_book'))
const store = useStore(key)
const router = useRouter()
Expand Down
10 changes: 5 additions & 5 deletions src/jelu-ui/src/components/BookList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import dataService from "../services/DataService";
import BookCard from "./BookCard.vue";
import SortFilterBarVue from "./SortFilterBar.vue";
useTitle('Jelu | My books')
const { t } = useI18n({
inheritLocale: true,
useScope: 'global'
})
inheritLocale: true,
useScope: 'global'
})
useTitle('Jelu | ' + t('nav.my_books'))
const books: Ref<Array<UserBook>> = ref([]);
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { t, d } = useI18n({
useScope: 'global'
})
useTitle('Jelu | History')
useTitle('Jelu | ' + t('nav.history'))
dayjs.extend(localizedFormat)
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/RandomList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { t } = useI18n({
useScope: 'global'
})
useTitle('Jelu | Random')
useTitle('Jelu | ' + t('nav.random'))
const books: Ref<Array<UserBook>> = ref([]);
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/ToReadList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { t } = useI18n({
useScope: 'global'
})
useTitle('Jelu | To read')
useTitle('Jelu | ' + t('nav.to_read'))
const books: Ref<Array<UserBook>> = ref([]);
Expand Down

0 comments on commit 15c866c

Please sign in to comment.