fix: css editor in page properties dialog not loading

pull/7792/merge
NGPixel 8 months ago
parent 19c26e58c9
commit 857c1720b1
No known key found for this signature in database

@ -276,10 +276,10 @@ export default {
currentTab: 0, currentTab: 0,
cm: null, cm: null,
rules: { rules: {
required: value => !!value || 'This field is required.', required: value => !!value || 'This field is required.',
path: value => { path: value => {
return filenamePattern.test(value) || 'Invalid path. Please ensure it does not contain special characters, or begin/end in a slash or hashtag string.' return filenamePattern.test(value) || 'Invalid path. Please ensure it does not contain special characters, or begin/end in a slash or hashtag string.'
} }
} }
} }
}, },
@ -334,7 +334,7 @@ export default {
this.loadEditor(this.$refs.codejs, 'html') this.loadEditor(this.$refs.codejs, 'html')
}, 100) }, 100)
}) })
} else if (newValue === 4) { } else if (newValue === 3) {
this.$nextTick(() => { this.$nextTick(() => {
setTimeout(() => { setTimeout(() => {
this.loadEditor(this.$refs.codecss, 'css') this.loadEditor(this.$refs.codecss, 'css')

Loading…
Cancel
Save