Portal/portal_client/src/utils/index.js

13 lines
253 B
JavaScript
Raw Normal View History

2025-03-10 17:41:02 +08:00
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)
})
}