在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...
添加回答
舉報
0/150
提交
取消