@ -118,7 +118,7 @@ const disablePreImportButton = computed(() => {
})
const disableImportButton = computed(() => {
return !templateEditorRef.value?.isValid()
return !templateEditorRef.value?.isValid
const disableFormatJsonButton = computed(() => !jsonEditorRef.value?.isValid)
@ -263,7 +263,7 @@ async function importTemplate() {
}
const isValid = () => {
const isValid = computed(() => {
for (const [_, o] of Object.entries(validateInfos)) {
if (o?.validateStatus) {
if (o.validateStatus === 'error') {
@ -272,7 +272,7 @@ const isValid = () => {
return true
defineExpose({
importTemplate,