修改小程序,前端,官网跳转路径
This commit is contained in:
@@ -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')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user