16 lines
260 B
JavaScript
16 lines
260 B
JavaScript
|
import {HTTP} from './http-common'
|
||
|
|
||
|
export default {
|
||
|
config: null,
|
||
|
|
||
|
getConfig() {
|
||
|
return this.config
|
||
|
},
|
||
|
|
||
|
initConfig() {
|
||
|
return HTTP.get('info')
|
||
|
.then(r => {
|
||
|
this.config = r.data
|
||
|
})
|
||
|
}
|
||
|
}
|