SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

console.log Unable to display output #898

Open AaronChengHao opened 5 years ago

AaronChengHao commented 5 years ago

problem type

Bug Report or Feature Request Information about PicGo Windows

problem recurrence

I wrote a console.log in the index.js file in main, but when I executed NPM run dev, the command line console did not display the contents of console.log image image

PasserbyFluid commented 5 years ago

别用中文 。no Chinese. 英文输出正常

AaronChengHao commented 5 years ago

别用中文 。no Chinese. 英文输出正常

谢谢这位仁兄,英文就可以,中文就不行。

michalzaq12 commented 5 years ago

The Chinese character is ignored during display logs. https://github.com/SimulatedGREG/electron-vue/blob/8fae4763e9d225d3691b627e83b9e09b56f6c935/template/.electron-vue/dev-runner.js#L149

AaronChengHao commented 5 years ago

@michalzaq12 Hello, console.log isn't it directly exported?