Skip to content

Commit 1a7bf17

Browse files
committed
Deployed on 2023-06-28 17:59:20
1 parent c7c2918 commit 1a7bf17

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+154
-154
lines changed

404.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<meta name="generator" content="VuePress 2.0.0-beta.25">
77
<link rel="icon" type="image/png" sizes="32x32" href="/[email protected]"><link rel="icon" type="image/png" sizes="16x16" href="/[email protected]"><link rel="shortcut icon" type="image/png" sizes="16x16" href="/[email protected]"><link rel="manifest" href="/manifest.webmanifest"><link rel="alternate" hreflang="en" href="https://www.attojs.org/"><link rel="alternate" hreflang="zh-cn" href="https://cn.attojs.org/"><meta name="application-name" content="VueRequest"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="apple-mobile-web-app-title" content="VueRequest"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="baidu-site-verification" content="code-ovMj8h2L3y"><meta name="google-site-verification" content="-zekuAhD-WeZ_iSgC4Js4rVeJ3CxzjRxIpiJN6TL7go"><meta name="keywords" content="vue-request, vue3, vue2, vue request, axios, vue, vuejs, js, request, fetch, vue-next, swr, 请求, vue请求库"><meta name="attojs-site-env" content="OTHER"><meta name="og:site_name" content="vue-request"><meta name="og:url" content="https://www.attojs.org/"><meta name="og:image" content="https://www.attojs.org/[email protected]"><meta name="og:type" content="website"><script src="https://hm.baidu.com/hm.js?a941ff3233d638d299d78b7f1013b7b0"></script><meta name="description" content="vue-request is a Vue 3 composition API for data fetching, supports SWR, polling, error retry, cache request, loading status, pagination, infinite load, etc."><meta name="og:description" content="vue-request is a Vue 3 composition API for data fetching, supports SWR, polling, error retry, cache request, loading status, pagination, infinite load, etc."><title>VueRequest</title>
8-
<link rel="preload" href="/assets/js/runtime~app.087b4e16.js" as="script"><link rel="preload" href="/assets/css/styles.512355ae.css" as="style"><link rel="preload" href="/assets/js/621.1e77c937.js" as="script"><link rel="preload" href="/assets/js/app.1f90f13a.js" as="script">
8+
<link rel="preload" href="/assets/js/runtime~app.46fcbce1.js" as="script"><link rel="preload" href="/assets/css/styles.512355ae.css" as="style"><link rel="preload" href="/assets/js/621.1e77c937.js" as="script"><link rel="preload" href="/assets/js/app.1f90f13a.js" as="script">
99
<link rel="stylesheet" href="/assets/css/styles.512355ae.css">
1010
</head>
1111
<body>
12-
<div id="app"><!--[--><div class="theme-container"><div class="theme-default-content"><h1>404</h1><blockquote>There&#39;s nothing here.</blockquote><p>Redirect to home page after<span style="color: #3eaf7c; font-weight: 600;"> 3 </span>seconds</p><a href="/" class="">Take me home</a></div></div><!----><!----><!--]--></div>
13-
<script src="/assets/js/runtime~app.087b4e16.js" defer></script><script src="/assets/js/621.1e77c937.js" defer></script><script src="/assets/js/app.1f90f13a.js" defer></script>
12+
<div id="app"><!--[--><div class="theme-container"><div class="theme-default-content"><h1>404</h1><blockquote>Looks like we&#39;ve got some broken links.</blockquote><p>Redirect to home page after<span style="color: #3eaf7c; font-weight: 600;"> 3 </span>seconds</p><a href="/" class="">Take me home</a></div></div><!----><!----><!--]--></div>
13+
<script src="/assets/js/runtime~app.46fcbce1.js" defer></script><script src="/assets/js/621.1e77c937.js" defer></script><script src="/assets/js/app.1f90f13a.js" defer></script>
1414
</body>
1515
</html>

api/global-options.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

api/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<meta name="generator" content="VuePress 2.0.0-beta.25">
77
<link rel="icon" type="image/png" sizes="32x32" href="/[email protected]"><link rel="icon" type="image/png" sizes="16x16" href="/[email protected]"><link rel="shortcut icon" type="image/png" sizes="16x16" href="/[email protected]"><link rel="manifest" href="/manifest.webmanifest"><link rel="alternate" hreflang="en" href="https://www.attojs.org/"><link rel="alternate" hreflang="zh-cn" href="https://cn.attojs.org/"><meta name="application-name" content="VueRequest"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="apple-mobile-web-app-title" content="VueRequest"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="baidu-site-verification" content="code-ovMj8h2L3y"><meta name="google-site-verification" content="-zekuAhD-WeZ_iSgC4Js4rVeJ3CxzjRxIpiJN6TL7go"><meta name="keywords" content="vue-request, vue3, vue2, vue request, axios, vue, vuejs, js, request, fetch, vue-next, swr, 请求, vue请求库"><meta name="attojs-site-env" content="OTHER"><meta name="og:site_name" content="vue-request"><meta name="og:url" content="https://www.attojs.org/"><meta name="og:image" content="https://www.attojs.org/[email protected]"><meta name="og:type" content="website"><script src="https://hm.baidu.com/hm.js?a941ff3233d638d299d78b7f1013b7b0"></script><meta name="description" content="vue-request is a Vue 3 composition API for data fetching, supports SWR, polling, error retry, cache request, loading status, pagination, infinite load, etc."><meta name="og:description" content="vue-request is a Vue 3 composition API for data fetching, supports SWR, polling, error retry, cache request, loading status, pagination, infinite load, etc."><title>Public API | VueRequest</title>
8-
<link rel="preload" href="/assets/js/runtime~app.087b4e16.js" as="script"><link rel="preload" href="/assets/css/styles.512355ae.css" as="style"><link rel="preload" href="/assets/js/621.1e77c937.js" as="script"><link rel="preload" href="/assets/js/app.1f90f13a.js" as="script">
8+
<link rel="preload" href="/assets/js/runtime~app.46fcbce1.js" as="script"><link rel="preload" href="/assets/css/styles.512355ae.css" as="style"><link rel="preload" href="/assets/js/621.1e77c937.js" as="script"><link rel="preload" href="/assets/js/app.1f90f13a.js" as="script">
99
<link rel="stylesheet" href="/assets/css/styles.512355ae.css">
1010
</head>
1111
<body>
@@ -63,7 +63,7 @@
6363
time<span class="token operator">:</span> <span class="token builtin">number</span><span class="token punctuation">;</span>
6464
<span class="token punctuation">}</span><span class="token punctuation">;</span>
6565
</code></pre></div></li><li><p><strong>Details:</strong></p><p>You can customize how to read cache.</p></li><li><p><strong>参考:</strong> <a href="/guide/documentation/cacheKey.html#customcache" class="">Custom cache</a></p></li></ul><h3 id="errorretrycount" tabindex="-1"><a class="header-anchor" href="#errorretrycount" aria-hidden="true">#</a> errorRetryCount <span class="badge tip" style="vertical-align:top;"><!--[-->reactivity<!--]--></span></h3><ul><li><p><strong>Type:</strong> <code>number | Ref&lt;number&gt;</code></p></li><li><p><strong>Default:</strong> <code>0</code></p></li><li><p><strong>Details:</strong></p><p>Maximum number of error retries.</p></li><li><p><strong>See also:</strong> <a href="/guide/documentation/errorRetry.html#errorretrycount" class="">ErrorRetryCount</a></p></li></ul><h3 id="errorretryinterval" tabindex="-1"><a class="header-anchor" href="#errorretryinterval" aria-hidden="true">#</a> errorRetryInterval <span class="badge tip" style="vertical-align:top;"><!--[-->reactivity<!--]--></span></h3><ul><li><p><strong>Type:</strong> <code>number | Ref&lt;number&gt;</code></p></li><li><p><strong>Default:</strong> <code>0</code></p></li><li><p><strong>Details:</strong></p><p>By default, VueRequest uses the <a href="https://en.wikipedia.org/wiki/Exponential_backoff" target="_blank" rel="noopener noreferrer"><strong>Exponential Backoff Algorithm</strong><span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariaHidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span></a> to calculate the appropriate interval for you. You can also override the default behavior by setting <code>errorRetryInterval</code>.</p></li><li><p><strong>See also:</strong> <a href="/guide/documentation/errorRetry.html#errorretryinterval" class="">ErrorRetryInterval</a></p></li></ul><h3 id="manual" tabindex="-1"><a class="header-anchor" href="#manual" aria-hidden="true">#</a> manual</h3><ul><li><p><strong>Type:</strong> <code>boolean</code></p></li><li><p><strong>Default:</strong> <code>false</code></p></li><li><p><strong>Details:</strong></p><p>When <code>manual</code> is set to <code>true</code>, you need to manually trigger <a href="#run"><code>run</code></a> or <a href="#runAsync"><code>runAsync</code></a> to initiate the request.</p></li><li><p><strong>See also:</strong> <a href="/guide/documentation/manual.html" class="">Manually Trigger</a></p></li></ul><h3 id="defaultparams" tabindex="-1"><a class="header-anchor" href="#defaultparams" aria-hidden="true">#</a> defaultParams</h3><ul><li><p><strong>Type:</strong> <code>P[]</code></p></li><li><p><strong>Default:</strong> <code>[]</code></p></li><li><p><strong>Details:</strong></p><p>If <a href="#manual"><code>manual</code></a> is set to <code>false</code>, <code>defaultParams</code> will be used as the request parameters when the request is automatically executed.</p></li></ul><h3 id="ready" tabindex="-1"><a class="header-anchor" href="#ready" aria-hidden="true">#</a> ready <span class="badge tip" style="vertical-align:top;"><!--[-->reactivity<!--]--></span></h3><ul><li><p><strong>Type:</strong> <code>Ref&lt;boolean&gt; | () =&gt; boolean</code></p></li><li><p><strong>Default:</strong> <code>true</code></p></li><li><p><strong>Details:</strong></p><p>The request will only be sent when <code>ready</code> is <code>true</code>.</p><ul><li>Automatic mode: When <code>manual</code> is set to <code>false</code>, a request will be automatically sent every time <code>ready</code> changes from <code>false</code> to <code>true</code>, and the request will include the <code>options.defaultParams</code> parameters.</li><li>Manual mode: When <code>manual</code> is set to <code>true</code>, no request can be sent as long as <code>ready</code> is <code>false</code>.</li></ul></li><li><p><strong>See also:</strong> <a href="/guide/documentation/ready.html" class="">Dependent Request</a></p></li></ul><h3 id="initialdata" tabindex="-1"><a class="header-anchor" href="#initialdata" aria-hidden="true">#</a> initialData</h3><ul><li><p><strong>Type:</strong> <code>R</code></p></li><li><p><strong>Default:</strong> <code>undefined</code></p></li><li><p><strong>Details:</strong></p><p>Default value for <a href="#data"><code>data</code></a>.</p></li></ul><h3 id="refreshdeps" tabindex="-1"><a class="header-anchor" href="#refreshdeps" aria-hidden="true">#</a> refreshDeps</h3><ul><li><p><strong>Type:</strong> <code>WatchSource&lt;any&gt; | WatchSource&lt;any&gt;[]</code></p></li><li><p><strong>Default:</strong> <code>[]</code></p></li><li><p><strong>Details:</strong></p><p>When the contents of <code>refreshDeps</code> change and <a href="#refreshdepsaction"><code>refreshDepsAction</code></a> is not set, the <code>refresh</code> will be triggered to execute again. Essentially, this is just a wrapper for <a href="https://v3.vuejs.org/guide/computed.html#watchers" target="_blank" rel="noopener noreferrer"><code>watch</code><span><svg class="icon outbound" xmlns="http://www.w3.org/2000/svg" ariaHidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><!--[--><span class="sr-only">open in new window</span><!--]--></span></a>.</p><div class="language-javascript ext-js"><pre class="language-javascript"><code><span class="token function">watch</span><span class="token punctuation">(</span>refreshDeps<span class="token punctuation">,</span> refresh<span class="token punctuation">)</span><span class="token punctuation">;</span>
66-
</code></pre></div></li><li><p><strong>See also:</strong> <a href="/guide/documentation/refreshDeps.html" class="">Dependency Refresh</a></p></li></ul><h3 id="refreshdepsaction" tabindex="-1"><a class="header-anchor" href="#refreshdepsaction" aria-hidden="true">#</a> refreshDepsAction</h3><ul><li><p><strong>Type:</strong> <code>() =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It will be called when the contents of <code>refreshDeps</code> change. It will also be triggered when <code>manual</code> is set to <code>true</code>.</p></li><li><p><strong>See also:</strong> <a href="/guide/documentation/refreshDeps.html#refreshdepsaction" class="">refreshDepsAction</a></p></li></ul><h3 id="onsuccess" tabindex="-1"><a class="header-anchor" href="#onsuccess" aria-hidden="true">#</a> onSuccess</h3><ul><li><p><strong>Type:</strong> <code>(data: R, params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered when <a href="#service">Service</a> <code>resolve</code> is called with <a href="#data"><code>data</code></a> and <a href="#params"><code>params</code></a> as parameters.</p></li></ul><h3 id="onerror" tabindex="-1"><a class="header-anchor" href="#onerror" aria-hidden="true">#</a> onError</h3><ul><li><p><strong>Type:</strong> <code>(error: Error, params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered when <a href="#service">Service</a> <code>reject</code> is called with <a href="#error"><code>error</code></a> and <a href="#params"><code>params</code></a> as parameters.</p></li></ul><h3 id="onbefore" tabindex="-1"><a class="header-anchor" href="#onbefore" aria-hidden="true">#</a> onBefore</h3><ul><li><p><strong>Type:</strong> <code>(params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered before the <a href="#service">Service</a> request with <a href="#params"><code>params</code></a> as a parameter.</p></li></ul><h3 id="onafter" tabindex="-1"><a class="header-anchor" href="#onafter" aria-hidden="true">#</a> onAfter</h3><ul><li><p><strong>Type:</strong> <code>(params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered after the <a href="#service">Service</a> request is completed with <a href="#params"><code>params</code></a> as a parameter.</p></li></ul><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">Last Updated: </span><span class="meta-item-info">6/8/2023, 2:38:06 AM</span></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: [email protected]">John</span><!----><!--]--><!--]--></span></div></footer><nav class="page-nav"><p class="inner"><!----><span class="next"><a href="/api/global-options.html" class="nav-link" aria-label="Global Options"><!--[--><!--]--> Global Options <!--[--><!--]--></a></span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!----><!--]--></div>
67-
<script src="/assets/js/runtime~app.087b4e16.js" defer></script><script src="/assets/js/621.1e77c937.js" defer></script><script src="/assets/js/app.1f90f13a.js" defer></script>
66+
</code></pre></div></li><li><p><strong>See also:</strong> <a href="/guide/documentation/refreshDeps.html" class="">Dependency Refresh</a></p></li></ul><h3 id="refreshdepsaction" tabindex="-1"><a class="header-anchor" href="#refreshdepsaction" aria-hidden="true">#</a> refreshDepsAction</h3><ul><li><p><strong>Type:</strong> <code>() =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It will be called when the contents of <code>refreshDeps</code> change. It will also be triggered when <code>manual</code> is set to <code>true</code>.</p></li><li><p><strong>See also:</strong> <a href="/guide/documentation/refreshDeps.html#refreshdepsaction" class="">refreshDepsAction</a></p></li></ul><h3 id="onsuccess" tabindex="-1"><a class="header-anchor" href="#onsuccess" aria-hidden="true">#</a> onSuccess</h3><ul><li><p><strong>Type:</strong> <code>(data: R, params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered when <a href="#service">Service</a> <code>resolve</code> is called with <a href="#data"><code>data</code></a> and <a href="#params"><code>params</code></a> as parameters.</p></li></ul><h3 id="onerror" tabindex="-1"><a class="header-anchor" href="#onerror" aria-hidden="true">#</a> onError</h3><ul><li><p><strong>Type:</strong> <code>(error: Error, params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered when <a href="#service">Service</a> <code>reject</code> is called with <a href="#error"><code>error</code></a> and <a href="#params"><code>params</code></a> as parameters.</p></li></ul><h3 id="onbefore" tabindex="-1"><a class="header-anchor" href="#onbefore" aria-hidden="true">#</a> onBefore</h3><ul><li><p><strong>Type:</strong> <code>(params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered before the <a href="#service">Service</a> request with <a href="#params"><code>params</code></a> as a parameter.</p></li></ul><h3 id="onafter" tabindex="-1"><a class="header-anchor" href="#onafter" aria-hidden="true">#</a> onAfter</h3><ul><li><p><strong>Type:</strong> <code>(params: P[]) =&gt; void</code></p></li><li><p><strong>Details:</strong></p><p>It is triggered after the <a href="#service">Service</a> request is completed with <a href="#params"><code>params</code></a> as a parameter.</p></li></ul><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">Last Updated: </span><span class="meta-item-info">6/28/2023, 9:58:33 AM</span></div><div class="meta-item contributors"><span class="meta-item-label">Contributors: </span><span class="meta-item-info"><!--[--><!--[--><span class="contributor" title="email: [email protected]">John</span><!----><!--]--><!--]--></span></div></footer><nav class="page-nav"><p class="inner"><!----><span class="next"><a href="/api/global-options.html" class="nav-link" aria-label="Global Options"><!--[--><!--]--> Global Options <!--[--><!--]--></a></span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!----><!--]--></div>
67+
<script src="/assets/js/runtime~app.46fcbce1.js" defer></script><script src="/assets/js/621.1e77c937.js" defer></script><script src="/assets/js/app.1f90f13a.js" defer></script>
6868
</body>
6969
</html>

0 commit comments

Comments
 (0)