mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Updated the Javascript to load the JSON data.
This commit is contained in:
parent
f23ff97acd
commit
8e4009cf8d
21
main.js
21
main.js
@ -1,5 +1,22 @@
|
|||||||
v = new Vue({
|
var v = new Vue({
|
||||||
el: '#app'
|
el: '#app',
|
||||||
|
data:{
|
||||||
|
debug: true,
|
||||||
|
static: null,
|
||||||
|
user_data: []
|
||||||
|
},
|
||||||
|
ready: function(){
|
||||||
|
this.fetchData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
fetchData: function(){
|
||||||
|
this.$http.get('bundles.json', function(data, status, response){
|
||||||
|
if(status == 200){
|
||||||
|
this.static = data;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user