de/core/frontend/src/utils/ApplicationContext.js
2023-08-24 17:34:35 +08:00

11 lines
198 B
JavaScript

import store from '@/store'
export class ApplicationContext {
static getService(name) {
if (!name) {
return null
}
const bean = store.getters.beanMap[name]
return bean
}
}