Kaynağa Gözat

文章保存接口优化

mark 5 yıl önce
ebeveyn
işleme
30547088a1
1 değiştirilmiş dosya ile 0 ekleme ve 3 silme
  1. 0 3
      routes/article.js

+ 0 - 3
routes/article.js

@@ -12,12 +12,9 @@ router.get('/:id', async (ctx) => {
 })
 
 router.post('/', async (ctx) => {
-    // console.log(ctx.request.body)
-    // ctx.body = ctx.request.body
     console.log(ctx.request.body);
     article = ctx.request.body
     article['authorID'] = 1
-    article['description'] = '当然也是一个测试'
     result = await ArticleDao.insert(article)
     console.log(result);
     ctx.body = result