1
1
import { defineConfig } from 'vitepress'
2
2
import { applyPlugins } from '@vue-hooks-plus/md-demo-plugins'
3
3
import { genTemp } from '@vue-hooks-plus/vite-plugin-gen-temp'
4
+ import { resolve } from 'path'
4
5
5
6
const base = process . env . NODE_ENV === 'production' ? '/vue-hooks-plus/docs' : ''
6
- const { resolve } = require ( 'path' )
7
7
8
8
export default defineConfig ( {
9
9
head : [
@@ -123,6 +123,10 @@ function getHooksSidebar() {
123
123
text : '节流' ,
124
124
link : '/useRequest/throttle/' ,
125
125
} ,
126
+ {
127
+ text : '并行请求' ,
128
+ link : '/useRequest/fetchs/' ,
129
+ } ,
126
130
{
127
131
text : '缓存 & SWR' ,
128
132
link : '/useRequest/cache/' ,
@@ -145,6 +149,7 @@ function getHooksSidebar() {
145
149
text : 'State' ,
146
150
items : [
147
151
{ text : 'useBoolean' , link : '/useBoolean/' } ,
152
+ { text : 'useUrlState' , link : '/useUrlState/' } ,
148
153
{ text : 'useFormatResult' , link : '/useFormatResult/' } ,
149
154
{ text : 'useDebounce' , link : '/useDebounce/' } ,
150
155
{ text : 'useThrottle' , link : '/useThrottle/' } ,
@@ -162,6 +167,7 @@ function getHooksSidebar() {
162
167
items : [
163
168
{ text : 'useDebounceFn' , link : '/useDebounceFn/' } ,
164
169
{ text : 'useThrottleFn' , link : '/useThrottleFn/' } ,
170
+ { text : 'useFetchs' , link : '/useFetchs/' } ,
165
171
{ text : 'useLockFn' , link : '/useLockFn/' } ,
166
172
{ text : 'useUpdate' , link : '/useUpdate/' } ,
167
173
{ text : 'useInterval' , link : '/useInterval/' } ,
0 commit comments