fix my stupidity

This commit is contained in:
Nitwel
2020-09-09 20:01:47 +02:00
parent 74ec51e4ad
commit 57fd330701

View File

@@ -274,9 +274,11 @@ export default defineComponent({
};
function fillTemplate() {
try {
emit('input', JSON.parse(props.template));
} catch {
if(props.type === 'json') {
try {
emit('input', JSON.parse(props.template));
} catch {}
} else {
emit('input', props.template);
}
}