Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
523 views
in Technique[技术] by (71.8m points)

关于vue-li 中 配置proxyTable后报错的问题

先贴出报错截图:

图片描述

下面是对config/index.js中proxyTablede的设置以及在组件的使用:

图片描述

图片描述

最后贴出终端的报错:

图片描述

是我配置错了?还是测试接口不支持跨域的?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

target 错了,应该换成你要的服务器网址不是本地的网址


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...