关于跨域时遇到的一些小问题的解决
控制台的报错:
基本就是前后端的跨域问题;
小示例:veu出问题的地方put
submitForm(formName) {
const that = this;
this.$refs[formName].validate((valid) => {
if (valid) {
axios.put('http://localhost:8181/book/update', this.ruleForm).then(function(resp) {
原创
2021-07-01 17:07:46 ·
72 阅读 ·
0 评论