main
ihzero 2024-04-24 16:11:51 +08:00
parent 19a98f563a
commit 46839aa2b7
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
VITE_COMMON_API_PREFIX = /api VITE_COMMON_API_PREFIX = /api-base
VITE_COMMON_API_URL = http://store-manage.hmily.club VITE_COMMON_API_URL = http://store-manage.hmily.club

View File

@ -15,10 +15,10 @@ export default defineConfig({
}, },
server: { server: {
proxy: { proxy: {
'/api': { '/api-base': {
target: 'http://store-manage.hmily.club', target: 'http://store-manage.hmily.club',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'), rewrite: (path) => path.replace(/^\/api-base/, '/api'),
}, },
} }
} }