@@ -127,7 +127,7 @@ async function updateArticle(req, res, next) {
127
127
titleArray = tocArray
128
128
}
129
129
} ) . use ( require ( 'markdown-it-sub' ) ) . use ( require ( 'markdown-it-sup' ) ) . use ( require ( 'markdown-it-deflist' ) ) . use ( require ( 'markdown-it-abbr' ) ) . use ( require ( 'markdown-it-footnote' ) ) . use ( require ( 'markdown-it-ins' ) ) . use ( require ( 'markdown-it-mark' ) ) . render ( `@[toc]\r${ req . body . content } ` )
130
- console . log ( articleContentHtml )
130
+
131
131
let updateData = await mysql . query ( 'UPDATE vue_blog SET articleTitle = ?, articleSubTitle = ?, articleNature = ?, articleKey = ?, articleContentMarkdown = ?, articleContentHtml = ?, articleUpdateTime = ? WHERE articleId = ?' ,
132
132
[ req . body . title , subTitle , req . body . nature , req . body . keyWords . join ( ) , req . body . content , articleContentHtml , moment ( ) . format ( 'YYYY-MM-DD HH:mm:ss' ) , req . body . articleId ] )
133
133
@@ -139,7 +139,7 @@ async function updateArticle(req, res, next) {
139
139
}
140
140
} )
141
141
let selectTitle = await mysql . query ( 'SELECT articleId FROM vue_blog_title WHERE articleId = ?' , [ req . body . articleId ] )
142
- console . log ( selectTitle )
142
+
143
143
if ( selectTitle . length ) {
144
144
await mysql . query ( 'UPDATE vue_blog_title SET h0 = ?, h1 = ?, h2 = ?, h3 = ?, h4 = ?, h5 = ?, h6 = ? WHERE articleId = ?' ,
145
145
[
0 commit comments