1.先本地全局安装http-server npm install -g http-server 2.yarn build生成前端包,例如包名称为dist 3.进入项目根目录 运行 npx http-server ./dist