Commit 51620a01 authored by junmeng huang's avatar junmeng huang
Browse files

fix:

⏺️ 完成! 我已经在 ApiService 类中添加了 get、post、put、delete 四个便捷方法。

  修复内容:

  在 api.js 中添加了:
  - get(url, params) - GET 请求
  - post(url, data) - POST 请求
  - put(url, data) - PUT 请求
  - delete(url, params) - DELETE 请求

  这些方法都会调用底层的 request() 方法,现在 auth.js 中的 apiService.post() 调用就能正常工作了。

  现在请重新编译

  在微信开发者工具中点击编译,自动登录功能应该能正常工作了,不会再报 apiService.post is not a function 的错误。

  至于 via.placeholder.com 的图片加载失败,这个是正常的(占位图片域名在国内无法访问),不影响功能,可以忽略。
parent 458b50ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment