Skip to content

Commit b399cf2

Browse files
committed
JavaScript:更新JS-Vue项目
1 parent 69dd077 commit b399cf2

File tree

1 file changed

+5
-5
lines changed
  • APIJSON-JavaScript/APIJSON-JS-Vue/src

1 file changed

+5
-5
lines changed

APIJSON-JavaScript/APIJSON-JS-Vue/src/App.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import axios from 'axios'
1616
// axios.defaults.withCredentials = true
1717
18-
let url_base = "http://139.196.140.118:8080"
18+
let url_base = "http://39.108.143.172:8080"
1919
let url_get = url_base + "/get"
2020
let url_head = url_base + "/head"
2121
let url_post_get = url_base + "/post_get"
@@ -53,7 +53,7 @@
5353
console.log('refresh model = \n' + JSON.stringify(model))
5454
}
5555
56-
axios.get(url_get + '/' + encodeURIComponent(JSON.stringify(
56+
axios.post(url_get,
5757
{
5858
'Moment': {
5959
'userId': 93793
@@ -64,13 +64,13 @@
6464
'[]': {
6565
'count': 5,
6666
'Comment': {
67-
'momentId@': encodeURIComponent('Moment/id')
67+
'momentId@': 'Moment/id'
6868
},
6969
'User': {
70-
'id@': encodeURIComponent('/Comment/userId')
70+
'id@': '/Comment/userId'
7171
}
7272
}
73-
})), { params: {} })
73+
})
7474
.then(function (response) {
7575
refresh(response.data)
7676
})

0 commit comments

Comments
 (0)