Skip to content

Commit c4ac88d

Browse files
MachinisteWebyyx990803
authored andcommitted
Add some tick for consistency (#28)
Signed-off-by: Bruno Lesieur <[email protected]>
1 parent ac39d56 commit c4ac88d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: en/data.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function createStore () {
2828
},
2929
actions: {
3030
fetchItem ({ commit }, id) {
31-
// return the Promise via store.dispatch() so that we know
31+
// return the Promise via `store.dispatch()` so that we know
3232
// when the data has been fetched
3333
return fetchItem(id).then(item => {
3434
commit('setItem', { id, item })
@@ -125,7 +125,7 @@ export default context => {
125125
reject({ code: 404 })
126126
}
127127

128-
// call asyncData() on all matched route components
128+
// call `asyncData()` on all matched route components
129129
Promise.all(matchedComponents.map(Component => {
130130
if (Component.asyncData) {
131131
return Component.asyncData({
@@ -178,7 +178,7 @@ On the client, there are two different approaches for handling data fetching:
178178
router.onReady(() => {
179179
// Add router hook for handling asyncData.
180180
// Doing it after initial route is resolved so that we don't double-fetch
181-
// the data that we already have. Using router.beforeResolve() so that all
181+
// the data that we already have. Using `router.beforeResolve()` so that all
182182
// async components are resolved.
183183
router.beforeResolve((to, from, next) => {
184184
const matched = router.getMatchedComponents(to)

Diff for: en/structure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ import { createApp } from './app'
105105

106106
const { app } = createApp()
107107

108-
// this assumes App.vue template root element has id="app"
108+
// this assumes App.vue template root element has `id="app"`
109109
app.$mount('#app')
110110
```
111111

0 commit comments

Comments
 (0)