File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,7 +210,6 @@ import { callAdminForthApi } from '@/utils';
210210import { useI18n } from ' vue-i18n' ;
211211import adminforth from ' @/adminforth' ;
212212import { ProgressBar } from ' @/afcl' ;
213- import * as Handlebars from ' handlebars' ;
214213import { IconCloseOutline } from ' @iconify-prerendered/vue-flowbite' ;
215214import { Tooltip , Skeleton } from ' @/afcl'
216215import { useRoute } from ' vue-router' ;
@@ -245,6 +244,7 @@ onMounted(async () => {
245244 }
246245 // iterate over all variables in template and replace them with their values from props.record[field].
247246 // if field is not present in props.record[field] then replace it with empty string and drop warning
247+ const { default : Handlebars } = await import (' handlebars' );
248248 const tpl = Handlebars .compile (template );
249249 const compiledTemplate = tpl (props .record );
250250 prompt .value = compiledTemplate ;
You can’t perform that action at this time.
0 commit comments