base.code-snippets 309 B

123456789101112131415
  1. {
  2. "http request": {
  3. "scope": "javascript,typescript",
  4. "prefix": "http",
  5. "body": [
  6. "/**",
  7. " * $2",
  8. " */",
  9. "export function ${0:fn}(data) {",
  10. " return http.${1|post,get,put,delete|}(`$CLIPBOARD`, data)",
  11. "}"
  12. ],
  13. "description": "http 请求封装"
  14. }
  15. }