docs(theme-editor): handleEditConfigChange logic (#7038)
parent
88ec06b717
commit
9bdf882517
|
@ -136,14 +136,10 @@ export default defineComponent({
|
|||
|
||||
const handleEditConfigChange = (newcontent, _, status) => {
|
||||
themeConfigContent.value = newcontent;
|
||||
if (
|
||||
status.contentErrors &&
|
||||
Array.isArray(status.contentErrors.validationErrors) &&
|
||||
status.contentErrors.validationErrors.length === 0
|
||||
) {
|
||||
editThemeFormatRight.value = true;
|
||||
} else {
|
||||
if (status.contentErrors && status.contentErrors.parseError) {
|
||||
editThemeFormatRight.value = false;
|
||||
} else {
|
||||
editThemeFormatRight.value = true;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue