修改mysql远程连接

This commit is contained in:
2025-09-11 15:52:38 +08:00
parent cb55ee2714
commit 2430ba5a6c
4 changed files with 470 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ VITE_APP_NAME=结伴客后台管理系统
VITE_APP_VERSION=1.0.0
# API配置
VITE_API_BASE_URL=/api
VITE_API_BASE_URL=https://webapi.jiebanke.com/api
VITE_API_TIMEOUT=10000
# 功能开关

View File

@@ -13,7 +13,7 @@ export default defineConfig({
data: {
VITE_APP_NAME: process.env.VITE_APP_NAME || '结伴客后台管理系统',
VITE_APP_VERSION: process.env.VITE_APP_VERSION || '1.0.0',
VITE_API_BASE_URL: process.env.VITE_API_BASE_URL || '/api'
VITE_API_BASE_URL: process.env.VITE_API_BASE_URL || 'https://webapi.jiebanke.com/api'
}
}
})
@@ -27,7 +27,7 @@ export default defineConfig({
port: 3150,
proxy: {
'/api': {
target: 'http://localhost:3100',
target: 'https://webapi.jiebanke.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api/v1')
}