在vue.config.js中設置
devServer: { port: 1888, proxy: { '/api': { //本地服務接口地址 target: 'http://localhost', //遠程演示服務地址,可用於直接啟動項目 //target: 'https://saber.bladex.vip/api', ws: true, pathRewrite: { '^/api': '/' } } } }
在vue.config.js中設置
devServer: { port: 1888, proxy: { '/api': { //本地服務接口地址 target: 'http://localhost', //遠程演示服務地址,可用於直接啟動項目 //target: 'https://saber.bladex.vip/api', ws: true, pathRewrite: { '^/api': '/' } } } }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。