After the vue project is developed, if you want to run the test locally, the final packaged file can be started through http-server. Proceed as follows:
//1、打包项目文件
npm run build
//2、进入dist打包文件
cd dist
//3、全局安装http-server
npm install http-server -g
//4、启动dist文件(-p:端口。9008具体端口号)
http-server -p 9008
Finally, enter in the browser: 127.0.0.1:9007 to view