chore: update ace-builds integration and fix initialization errors

This commit is contained in:
Jacky 2025-04-10 13:32:20 +00:00
parent d487af0567
commit c5ea44ca1e
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
7 changed files with 29 additions and 12 deletions

View file

@ -23,7 +23,14 @@ const value = computed({
},
})
ace.config.setModuleUrl('ace/ext/searchbox', extSearchboxUrl)
onMounted(() => {
try {
ace.config.setModuleUrl('ace/ext/searchbox', extSearchboxUrl)
}
catch (error) {
console.error('Failed to initialize Ace editor:', error)
}
})
</script>
<template>