1404/11/01-add dynamic config
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
export function getConfigApp(key: string) {
|
||||
const config = window.__APP_CONFIG__ ? window.__APP_CONFIG__.user:{}
|
||||
|
||||
if (config) {
|
||||
return config[key]
|
||||
}
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user