在config/index.js配置了
proxyTable: {
target: 'http://www.vuetpadmin.com/',
changeOrigin: true,
secure: false
},
methods:{
target(){
this.$http({
method: 'get',
url: 'admin/index/login.html',
data: {
name: 'virus'
}
})
}
},
为什么http请求是http://localhost:8080/admin/index/login.html(vue的访问域名IP)而不是
http://www.vuetpadmin.com/adm...
森林海