fix(docs): api document is not accessible

This commit is contained in:
chenos 2021-10-29 08:35:01 +08:00
parent 41b023987b
commit 9cfdb7456a
15 changed files with 1 additions and 11 deletions

View File

@ -10,7 +10,7 @@ export default defineConfig({
'process.env.API_HOSTNAME': process.env.API_HOSTNAME, 'process.env.API_HOSTNAME': process.env.API_HOSTNAME,
}, },
proxy: { proxy: {
'/api': { '/api/': {
'target': `http://localhost:${process.env.API_PORT}/`, 'target': `http://localhost:${process.env.API_PORT}/`,
'changeOrigin': true, 'changeOrigin': true,
'pathRewrite': { '^/api/': '/api/' }, 'pathRewrite': { '^/api/': '/api/' },

View File

@ -1,10 +0,0 @@
---
toc: menu
---
# Action
## action.params
## action.mergeParams()