Skip to content

Commit

Permalink
fix bug _showAlert
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryxing committed Jul 3, 2017
1 parent 1572f65 commit a1173aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 30 deletions.
44 changes: 15 additions & 29 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
methods: {
handleResponse (response) {
this.$store.dispatch('deleteAlert')
console.log(response)
if (response.status >= 400) {
if (response.status === 401) {
this.handleUnauthorized()
Expand All @@ -34,7 +35,7 @@
},
handleServerError (response) {
this.showAlert(response.statusText)
this._showAlert(response.statusText)
},
handleUnauthorized () {
Expand Down

0 comments on commit a1173aa

Please sign in to comment.