Skip to content

Commit

Permalink
fix js bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuwei committed Jul 10, 2019
1 parent 8e6e50a commit 5ceb357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var app = new Vue({
}
},
methods: {
getPreference: function(argument) {
getPreference() {
fetch("http://localhost:62718/preference")
.then(function(res) {
return res.json();
Expand All @@ -18,7 +18,7 @@ var app = new Vue({
this.preference = preference;
});
},
updatePreference: function() {
updatePreference() {
this.loading = true;
fetch("http://localhost:62718/preference", {
method: "POST",
Expand Down

0 comments on commit 5ceb357

Please sign in to comment.