13 lines
253 B
JavaScript
13 lines
253 B
JavaScript
|
import { load } from '../api/config'
|
||
|
import store from '../store'
|
||
|
|
||
|
/**
|
||
|
* 获取全局配置
|
||
|
*/
|
||
|
export function getAppSetting() {
|
||
|
load().then(res => {
|
||
|
const appSetting = JSON.parse(res.data)
|
||
|
store.commit('SET_APP_SETTING', appSetting)
|
||
|
})
|
||
|
}
|