Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9a11201

Browse files
committed
Fix
1 parent a32a2e6 commit 9a11201

File tree

3 files changed

+81
-111
lines changed

3 files changed

+81
-111
lines changed

‎package-lock.json‎

Lines changed: 79 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/App.vue‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div id="app">
33
<img alt="Vue logo" src="./assets/logo.png" />
4-
test
54
<TableOfContents />
65
</div>
76
</template>
@@ -10,15 +9,14 @@
109
import { provide } from 'vue'
1110
import { ApolloClient, InMemoryCache } from '@apollo/client/core'
1211
import { DefaultApolloClient } from '@vue/apollo-composable'
12+
1313
import TableOfContents from './components/TableOfContents.vue'
1414
1515
const client = new ApolloClient({
1616
uri: 'https://api.graphql.guide/graphql',
1717
cache: new InMemoryCache()
1818
})
1919
20-
console.log('setup')
21-
2220
export default {
2321
name: 'App',
2422
components: {

‎src/components/TableOfContents.vue‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
hi
32
<div class="TableOfContents">
43
<li v-for="chapter of chapters" :key="chapter.id">
54
{{ chapter.title }}
@@ -9,7 +8,7 @@
98

109
<script>
1110
import { useQuery, useResult } from '@vue/apollo-composable'
12-
import gql from '@apollo/client/core'
11+
import { gql } from '@apollo/client/core'
1312
1413
export default {
1514
name: 'TableOfContents',
@@ -30,7 +29,6 @@ export default {
3029
`)
3130
3231
const chapters = useResult(result, [])
33-
console.log('chapters:', chapters)
3432
3533
return {
3634
loading,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /