修改mysql远程连接
This commit is contained in:
@@ -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
|
||||
|
||||
# 功能开关
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user