New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

axios-yjp-01

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-yjp-01

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
0
Created
Source

Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.

服务端 vite-project\service 基于express路由开发 直接node app.js启动 客户端 npm run dev 启动 列举了常见的axios的封装 重复请求,loading效果,错误状态码,上传下载文件,限流,自定义错误,缓存,简洁的数据结构响应 axios(basicProps,PermissionsControl,loadingText)

basicProps:{ url: '/api/upload', api路径 method: 'post', 请求方式 env: 'baseURL', //环境变量类型
__retryCount: 1, //重发初始值默认从1开始 retry: 3, //重发最大次数 catchTime: 5, //缓存有效期,分钟 INTERVAL: 1000, //限流间隔时间 count: 2 , //限流个数 formData:formData, //上传文件 }

PermissionsControl:{
repeat_request_cancel: false, // 是否开启取消重复请求, 默认为 true loading: true, // 是否开启loading层效果, 默认为false error_message_show: true, //处理错误状态码 reduct_data_format: true, // 是否开启简洁的数据结构响应, 默认为true code_message_show: false, // 是否开启code不为0时的信息提示, 默认为false cacheEnabled: false, // 默认为不启用缓存 、 requesetLimit: false,//默认不支持限流 is_download: false //是否支持下载文件 }

loadingText:{ text: '获取列表数据....' //loading文字 }

FAQs

Package last updated on 31 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts