修改小程序,前端,官网跳转路径

This commit is contained in:
2025-09-28 18:00:03 +08:00
parent ec3f472641
commit e79e5bb086
8 changed files with 199 additions and 22 deletions

View File

@@ -9,6 +9,7 @@ export default defineConfig(({ mode }) => {
return {
plugins: [vue()],
base: '/bank/', // 设置基础路径
resolve: {
alias: {
'@': resolve(__dirname, 'src')
@@ -18,10 +19,10 @@ export default defineConfig(({ mode }) => {
port: 5300,
host: '0.0.0.0',
proxy: {
'/api': {
'/bank/api': {
target: env.VITE_API_BASE_URL || 'http://localhost:5351',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api')
rewrite: (path) => path.replace(/^\/bank\/api/, '/api')
}
}
},