vue+element+後臺springmvc部署到服務器上,vue項目部署

 1.src--api--config.js文件里路徑,在本地須要加‘/api’   部署時則去掉,換成‘./’css 2.  config--index.js的對應後端路徑換掉,例如  target: api網址,  target:'http://localhost:8080/gwc-webapi/',web 3.cnpm run build  構建, 而後把dist下面的static文件夾
相關文章
相關標籤/搜索