Skip to content

Commit ce19be8

Browse files
authored
fix(example): fix repo and branches names in fetching example (vuejs#3102)
1 parent b1b5555 commit ce19be8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/examples/src/fetching-data/App/composition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ref, watchEffect } from 'vue'
22

33
const API_URL = `https://api.github.com/repos/vuejs/core/commits?per_page=3&sha=`
4-
const branches = ['main', 'v2-compat']
4+
const branches = ['main', 'minor']
55

66
export default {
77
setup() {

src/examples/src/fetching-data/App/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const API_URL = `https://api.github.com/repos/vuejs/core/commits?per_page=3&sha=
22

33
export default {
44
data: () => ({
5-
branches: ['main', 'v2-compat'],
5+
branches: ['main', 'minor'],
66
currentBranch: 'main',
77
commits: []
88
}),

src/examples/src/fetching-data/App/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1>Latest Vue Core Commits</h1>
77
v-model="currentBranch">
88
<label :for="branch">{{ branch }}</label>
99
</template>
10-
<p>vuejs/vue@{{ currentBranch }}</p>
10+
<p>vuejs/core@{{ currentBranch }}</p>
1111
<ul v-if="commits.length > 0">
1212
<li v-for="{ html_url, sha, author, commit } in commits" :key="sha">
1313
<a :href="html_url" target="_blank" class="commit">{{ sha.slice(0, 7) }}</a>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This example fetches latest Vue.js commits data from GitHub’s API and displays them as a list.
2-
You can switch between the two branches.
1+
This example fetches latest Vue Core commits data from GitHub’s API and displays them as a list.
2+
You can switch between the two primary branches.

0 commit comments

Comments
 (0)