{"id":18458997,"url":"https://github.com/he426100/uni-app-request","last_synced_at":"2025-04-23T17:32:27.344Z","repository":{"id":117340763,"uuid":"209939048","full_name":"he426100/uni-app-request","owner":"he426100","description":"基于 Promise 对象实现更简单的 request 使用方式，支持请求和响应拦截","archived":false,"fork":false,"pushed_at":"2020-01-31T03:13:54.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T15:35:04.447Z","etag":null,"topics":["request","uni-app","uniapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/he426100.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-21T06:50:40.000Z","updated_at":"2020-02-19T14:45:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9897661-bffe-4be6-ad52-a44354704df5","html_url":"https://github.com/he426100/uni-app-request","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/he426100%2Funi-app-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/he426100%2Funi-app-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/he426100%2Funi-app-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/he426100%2Funi-app-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/he426100","download_url":"https://codeload.github.com/he426100/uni-app-request/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250480587,"owners_count":21437575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["request","uni-app","uniapp"],"created_at":"2024-11-06T08:21:17.120Z","updated_at":"2025-04-23T17:32:27.306Z","avatar_url":"https://github.com/he426100.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**插件使用说明**\n\n- 基于 Promise 对象实现更简单的 request 使用方式，支持请求和响应拦截\n- 下载后放到项目 js_sdk 目录下（使用HBuild X导入插件即可）\n\n## 1. 配置 \n\n- h5请参考 [uni-app跨域解决方案（踩坑）](https://blog.csdn.net/paopao79085/article/details/91948809) 配置跨域方案\n- App不存在跨域问题，直接使用接口地址即可\n\n## 2. 使用示例\n\n```js\n/**\n * @/api/user.js\n */\nimport { get, post } from '@/js_sdk/mrpzx-request'\n\nexport function login(username, password) {\n  return post('user/login', { username, password })\n}\n```\n\n## 3. 其他\n\n- 本插件配合Vuex使用，如不需要，改写index.js去掉store部分即可\n- 本插件由 [封装的request网络请求](https://ext.dcloud.net.cn/plugin?id=159) 改写而来，去掉了个人不需要的东西\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhe426100%2Funi-app-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhe426100%2Funi-app-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhe426100%2Funi-app-request/lists"}