allow call methods from $utils

This commit is contained in:
Yanzhen Yu 2021-12-01 17:23:43 +08:00
parent ab99a041df
commit fe29d74294

View File

@ -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') {