Skip to content

Commit cf240e0

Browse files
author
syshex
committed
#5 - Bug fix - Issue 5 - Axios config not being loaded with GET method and Delegate false.
1 parent 1ebdc93 commit cf240e0

7 files changed

+35
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 1.1.8 (August 11, 2017)
4+
5+
* Bug fix - Issue 5 - Axios config not being loaded with GET method and Delegate false.
6+
37
### 1.1.7 (August 10, 2017)
48

59
* Allowing Axios configuration to be passed for the requests

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
vue-bootstrap-table is a sortable and searchable table, with Bootstrap styling, for Vue.js.
44

5-
### VUE 2 : 1.1.7
5+
### VUE 2 : 1.1.8
66

77
### Vue 1 : [jbaysolutions/vue-bootstrap-table](https://github.com/jbaysolutions/vue-bootstrap-table)
88

@@ -488,6 +488,10 @@ If you have a feature request, please add it as an issue or make a pull request.
488488

489489
## Changelog
490490

491+
### 1.1.8
492+
493+
* Bug fix - Issue 5 - Axios config not being loaded with GET method and Delegate false.
494+
491495
### 1.1.7
492496

493497
* Allowing Axios configuration to be passed for the requests

dist/vue-bootstrap-table.js

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-bootstrap-table.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-bootstrap-table.min.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue2-bootstrap-table2",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "A sortable and searchable vue table, as a Vue component, using bootstrap styling.",
55
"keywords": [
66
"table",

src/VueBootstrapTable.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,16 @@
549549
}
550550
//console.log(JSON.stringify(ajaxParameters));
551551
}
552+
if( this.ajax.enabled && !this.ajax.delegate ) {
553+
if ( this.ajax.method=== "GET" ) {
554+
//COPY
555+
ajaxParameters = JSON.parse(JSON.stringify(this.ajax.axiosConfig));
556+
ajaxParameters.params = {};
557+
}
558+
if ( this.ajax.method=== "POST" ) {
559+
// Do nothing at this point !
560+
}
561+
}
552562
if (this.ajax.enabled && this.ajax.method === "GET") {
553563
axios.get(self.ajax.url, ajaxParameters )
554564
.then(response => {

0 commit comments

Comments
 (0)