mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
feat: 封装条件组件
This commit is contained in:
10
frontend/src/utils/ApplicationContext.js
Normal file
10
frontend/src/utils/ApplicationContext.js
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user