vue-cli中的跨域问题

遇到跨域的问题可在文件夹config中的index.js中进行设置

    proxyTable: {
      '/api': {
        target: 'http://39.97.33.178',//要用到的地址
        changeOrigin: true
    }


    },

猜你喜欢

转载自www.cnblogs.com/lipu12281/p/11836876.html