Commit 89a2547d by 宋毅

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents c7504f46 6e4eb847
...@@ -22,6 +22,7 @@ module.exports = function (app) { ...@@ -22,6 +22,7 @@ module.exports = function (app) {
} else { } else {
console.log(data); console.log(data);
str = marked(data.toString()); str = marked(data.toString());
res.header('content-type', 'text/html;charset=UTF-8');
res.render('apidoc', { str }); res.render('apidoc', { str });
} }
}); });
...@@ -37,6 +38,7 @@ module.exports = function (app) { ...@@ -37,6 +38,7 @@ module.exports = function (app) {
} else { } else {
console.log(data); console.log(data);
str = marked(data.toString()); str = marked(data.toString());
res.header('content-type', 'text/html;charset=UTF-8');
res.render('apidoc', { str }); res.render('apidoc', { str });
} }
}); });
...@@ -69,6 +71,7 @@ module.exports = function (app) { ...@@ -69,6 +71,7 @@ module.exports = function (app) {
console.log(data); console.log(data);
str = marked(data.toString()); str = marked(data.toString());
console.log(str); console.log(str);
res.header('content-type', 'text/html;charset=UTF-8');
res.render('apidoc', { str }); res.render('apidoc', { str });
} }
}); });
......
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