Commit d7af117a by 王昆

gsb

parent 52c53448
...@@ -42,7 +42,7 @@ module.exports = function (app) { ...@@ -42,7 +42,7 @@ 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) {
let platform = os.platform(); let platform = os.platform() || "";
console.log(platform, '----------------'); console.log(platform, '----------------');
// windows // windows
if (platform.toLocaleLowerCase().startsWith('win')) { if (platform.toLocaleLowerCase().startsWith('win')) {
......
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