feat: 封装条件组件

This commit is contained in:
fit2cloud-chenyw
2021-03-29 21:24:33 +08:00
parent 5fcc97565d
commit ab2a840bd5
12 changed files with 131 additions and 3 deletions

View File

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