frontend/src/config.js

16 lines
260 B
JavaScript
Raw Normal View History

2019-09-09 17:32:57 +00:00
import {HTTP} from './http-common'
export default {
config: null,
getConfig() {
return this.config
},
initConfig() {
return HTTP.get('info')
.then(r => {
this.config = r.data
})
}
}