mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-23 17:49:49 +08:00
allow call methods from $utils
This commit is contained in:
parent
ab99a041df
commit
fe29d74294
@ -40,6 +40,12 @@ export function mountUtilMethods(apiService: ApiService) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (name in window) {
|
||||
const method = window[name as keyof Window];
|
||||
if (typeof method === 'function') {
|
||||
method(parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (componentId === '$module') {
|
||||
|
Loading…
Reference in New Issue
Block a user