axios
兔老大的胡萝卜
这个作者很懒,什么都没留下…
展开
-
axios的post和get提交方法
postaxios.post(`${base}/login`, params).then(res => res.data);post需要封装成formdata格式上传后台才能获取参数getget不需要axios.get(`${base}/user/list`, { params: params });原创 2020-06-24 15:20:36 · 352 阅读 · 0 评论 -
vue的axios连接springsecurity的跨域问题
我改了很多地方,至于哪个位置最关键我也不懂,可以都试一下首先是后台的配置,最为关键的配置security的配置我就写最主要的@EnableWebSecurity@Configuration@EnableGlobalMethodSecurity(prePostEnabled = true)@Order(-1)public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected vo原创 2020-05-21 10:16:16 · 784 阅读 · 1 评论