parent
0581e3d5dd
commit
bf4c3cb301
4 changed files with 47 additions and 13 deletions
@ -1,10 +1,7 @@ |
||||
App({ |
||||
onLaunch: function () { |
||||
this.store = new(this.jsonApi()) |
||||
}, |
||||
|
||||
jsonApi: function() { |
||||
const jsonApi = require('node_modules/jsonapi-datastore/dist/jsonapi-datastore.js').JsonApiDataStore |
||||
return jsonApi |
||||
const jsonApi = require('node_modules/jsonapi-datastore/dist/jsonapi-datastore.js') |
||||
this.store = new(jsonApi.JsonApiDataStore) |
||||
this.jsonModel = jsonApi.JsonApiDataStoreModel |
||||
} |
||||
}) |
||||
}) |
||||
|
Loading…
Reference in new issue