質問編集履歴
2
コードに追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -45,9 +45,7 @@
|
|
45
45
|
})
|
46
46
|
}
|
47
47
|
})
|
48
|
-
console.log('詰め替え終了')
|
48
|
+
console.log('詰め替え終了')
|
49
|
-
// sessionStorage.setItem('search-params',JSON.stringify(this.params))
|
50
|
-
// this.getPosts();
|
51
49
|
console.log(this.books)
|
52
50
|
this.addResult(this.books)
|
53
51
|
},
|
1
コードに追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
なぜ正しく出力されないのか、解決法を教えていただきたいです。よろしくお願いします。
|
3
3
|
|
4
4
|
```Javascript
|
5
|
+
data(){
|
6
|
+
return {
|
7
|
+
keyword: 'サッカー',
|
8
|
+
totalItems: null,
|
9
|
+
index: 0,
|
10
|
+
books: [],
|
11
|
+
posts: [],
|
12
|
+
searching: false,
|
13
|
+
word: null,
|
14
|
+
currentPage: 1,
|
15
|
+
}
|
16
|
+
},
|
5
17
|
methods: {
|
6
18
|
//検索ボタンで書籍を検索
|
7
19
|
...mapActions(['addResult']),
|