1.使用以下指令将工程打包,
npm run build
2.在工程的dist文件夹下生成下面2项,直接将2项放到IIS应用的路径中即可。
将前端,后端api放到同一台上,在访问api时会发生跨域问题。
在IIS中http响应头中添加2项
Access-Control-Allow-Headers:Content-Type, api_key, Authorization Access-Control-Allow-Origin:*