diff --git a/commitlint.config.js b/commitlint.config.js index f4e5bebe..b2894ad6 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -10,6 +10,7 @@ module.exports = { 'docs', 'feat', 'fix', + 'perf', 'polish', 'refactor', 'release', diff --git a/src/renderer/components/editor/TheEditor.vue b/src/renderer/components/editor/TheEditor.vue index c9784742..14507170 100644 --- a/src/renderer/components/editor/TheEditor.vue +++ b/src/renderer/components/editor/TheEditor.vue @@ -244,8 +244,9 @@ watch( () => props.lang, () => setLang() ) + watch( - () => props.modelValue, + () => props.snippetId, () => setValue() )