File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/examples/src/fetching-data/App Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { ref , watchEffect } from 'vue'
2
2
3
3
const API_URL = `https://api.github.com/repos/vuejs/core/commits?per_page=3&sha=`
4
- const branches = [ 'master ' , 'v2-compat' ]
4
+ const branches = [ 'main ' , 'v2-compat' ]
5
5
6
6
export default {
7
7
setup ( ) {
8
- const currentBranch = ref ( 'master' )
8
+ const currentBranch = ref ( branches [ 0 ] )
9
9
const commits = ref ( null )
10
10
11
11
watchEffect ( async ( ) => {
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ const API_URL = `https://api.github.com/repos/vuejs/core/commits?per_page=3&sha=
2
2
3
3
export default {
4
4
data : ( ) => ( {
5
- branches : [ 'master ' , 'v2-compat' ] ,
6
- currentBranch : 'master ' ,
5
+ branches : [ 'main ' , 'v2-compat' ] ,
6
+ currentBranch : 'main ' ,
7
7
commits : null
8
8
} ) ,
9
9
Original file line number Diff line number Diff line change 1
- < h1 > Latest Vue.js Commits</ h1 >
1
+ < h1 > Latest Vue Core Commits</ h1 >
2
2
< template v-for ="branch in branches ">
3
3
< input type ="radio "
4
4
:id ="branch "
@@ -17,4 +17,4 @@ <h1>Latest Vue.js Commits</h1>
17
17
</ span >
18
18
at < span class ="date "> {{ formatDate(commit.author.date) }}</ span >
19
19
</ li >
20
- </ ul >
20
+ </ ul >
You can’t perform that action at this time.
0 commit comments