We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8250a0 commit f06777bCopy full SHA for f06777b
src/components/MessageList.vue
@@ -27,9 +27,11 @@ export default {
27
/* eslint-disable */
28
data() {
29
let comments = [];
30
+ let result = [];
31
return {
32
comments,
33
current: 1,
34
+ result
35
}
36
},
37
methods: {
@@ -42,8 +44,10 @@ export default {
42
44
43
45
46
beforeMount: function () {
- this.$http("http://www.bai3.xyz/comment/getlist")
- .then(response => {console.log(response);this.comments = response.data.reverse()})
47
+ this.$http("http://www.bai3.xyz/api/getlist/?format=json")
48
+ .then(response => {this.comments = response.data.reverse()});
49
+ this.$http("http://www.bai3.xyz/api/users/?format=json")
50
+ .then(response => {this.result = response.data})
51
52
53
filters: {
0 commit comments