完善小程序

This commit is contained in:
xuqiuyun
2025-10-09 17:59:26 +08:00
parent 74b2edb510
commit f88383425f
46 changed files with 3477 additions and 185 deletions

View File

@@ -18,10 +18,10 @@ export default defineConfig(({ mode }) => {
port: parseInt(env.VITE_PORT) || 3001,
historyApiFallback: true,
proxy: {
'/api': {
target: env.VITE_API_BASE_URL || 'https://ad.ningmuyun.com/insurace/',
'/insurance/api': {
target: env.VITE_API_BASE_URL || 'http://localhost:3000',
changeOrigin: true,
rewrite: (path) => path
rewrite: (path) => path.replace(/^\/insurance/, '')
}
}
}