Commit af5ef5fc authored by wty's avatar wty

修改页面发布响应头

parent 6b20cdf1
...@@ -52,6 +52,7 @@ getMysql.then(Mysql => { ...@@ -52,6 +52,7 @@ getMysql.then(Mysql => {
router.get('/publicPage', (req, res) => { router.get('/publicPage', (req, res) => {
res.set({'Content-Type': 'application/json; charset=utf-8'})
const {page_id} = req.query const {page_id} = req.query
const SQL = 'SELECT * FROM page WHERE page_id = ?' const SQL = 'SELECT * FROM page WHERE page_id = ?'
Mysql.query(SQL, [page_id], (err, result) => { Mysql.query(SQL, [page_id], (err, result) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment