mirror of
https://github.com/koel/koel
synced 2024-12-23 19:13:06 +00:00
22 lines
394 B
JavaScript
22 lines
394 B
JavaScript
import http from '../services/http';
|
|
import stub from '../stubs/settings';
|
|
|
|
export default {
|
|
stub,
|
|
|
|
state: {
|
|
settings: [],
|
|
},
|
|
|
|
init(settings) {
|
|
this.state.settings = settings;
|
|
},
|
|
|
|
get all() {
|
|
return this.state.settings;
|
|
},
|
|
|
|
update(successCb = null, errorCb = null) {
|
|
http.post('settings', this.all, successCb, errorCb);
|
|
},
|
|
};
|