[] The new Vue vue solve cross-domain problems

vue.config.js

module.exports = { devServer: { proxy: { "/api": { target: "http://192.168.0.103:9876", changOrigin: true, pathRewrite: {"^/api" : ""} } } } }

 

Guess you like

Origin www.cnblogs.com/jxd283465/p/11615163.html