遇到的错误如下:
axios-0.18.0.js:15 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'protocol')
这个错误就是敲代码太粗心了
这一行代码,后面我写的是路径把http://localhost:8080也加上了,所以前面应该是用url而不是用uri
遇到的错误如下:
axios-0.18.0.js:15 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'protocol')
这个错误就是敲代码太粗心了
这一行代码,后面我写的是路径把http://localhost:8080也加上了,所以前面应该是用url而不是用uri