vue 跨域

package.json 目录下新建 vue.config.js 文件:

module.exports = {
   devServer: {
      proxy: 'http://localhost:3000'
   }
}

 

你可能感兴趣的:(vue 跨域)