模仿网易云音乐
This project was generated with electron-vue using vue-cli. Documentation about the original structure can be found here.
# install dependencies
npm install
# 本地启动项目
npm run dev
# 打包项目
npm run build
启动后端 api 服务
使用的是 官方api。
$ git clone [email protected]:Binaryify/NeteaseCloudMusicApi.git
$ npm install
$ node app.js
服务器启动默认端口为 3000 .
全局引入 element ui
后,使用 element ui
的 table 组件发现无法显示。
解决:在 .electron-vue/webpack.renderer.config.js
修改如下代码:
...
let whiteListedModules = ['vue', 'element-ui']
...
初始化工程后,执行 npm run build
异常
Cannot locate Mac/Finder/DS_Store.pm in @INC (you may need to install the Mac::Finder::DSStore module)
解决:
由于 "electron-builder": "^20.15.1",
版本太低导致,卸载重装 "electron-builder": "^22.13.1",
即可。