注:我也将一个打包好的html和js前端代码放到了我的资源部分,这个可以无需联网,本地运行
源码查看与本地编译运行:
-
安装nodejs后,安装所有依赖
-
在项目中添加依赖(可能是虚拟机版本太旧有许多warn):
-
npm run build
编译并将app放到dist/文件夹 (to compile the app and place it in the dist/ directory)
-
npm run serve to serve from the dist/ directory and open a page on your browser.
-
浏览器输入 http://localhost:5000/,可以看到运行结果: