dataease-dm/frontend/src/utils/ApplicationContext.js

11 lines
198 B
JavaScript
Raw Normal View History

2021-03-29 21:24:33 +08:00
import store from '@/store'
export class ApplicationContext {
static getService(name) {
if (!name) {
return null
}
const bean = store.getters.beanMap[name]
return bean
}
}