File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3131 background : #0d1117 ;
3232 padding : 10px ;
3333 border-radius : 10px ;
34+ overflow-y : auto ;
3435}
3536
3637.hljs-doctag ,
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ const mdEdit = computed({
116116const saving = ref (false );
117117
118118async function markdownInit(itemId : string ) {
119- // const itemId = getItemId(path);
120119 if (! markdownsStore .targetRepo (itemId )) {
121120 const md = await getMarkdown (itemId );
122121 if (! md ) {
@@ -152,8 +151,8 @@ async function onDiscardClicked() {
152151 });
153152}
154153
155- watch (() => props .id , async (newValue ) => {
156- if (newValue ) {
154+ watch (() => props .id , async (newValue , oldValue ) => {
155+ if (newValue !== oldValue ) {
157156 await markdownInit (newValue );
158157 }
159158});
You can’t perform that action at this time.
0 commit comments