Commit e7fe4399 by 王昆

gsb

parent 49c15a47
...@@ -40,7 +40,11 @@ module.exports = function (app) { ...@@ -40,7 +40,11 @@ module.exports = function (app) {
app.get('/vue/comp/:cname',function(req,res){ app.get('/vue/comp/:cname',function(req,res){
var componentName=req.params.cname; var componentName=req.params.cname;
buildComponent(componentName).then(function(r){ buildComponent(componentName).then(function(r){
res.end(r.replace(/\n/g,"")); // windows
let _r = r.replace(/\n\r/g,"");
// linux
_r = _r.replace(/\n/g,"");
res.end(_r,"");
}); });
}); });
}; };
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