2 Commits

Author SHA1 Message Date
028883975d Merge branch 'main' of http://114.55.169.15:3000/qiushanhe/ss-crm-manage-web into dev-cl
# Conflicts:
#	vite.config.js
2024-05-19 23:20:51 +08:00
acc59c3a9e 本地启动 2024-05-07 00:03:52 +08:00
3 changed files with 1579 additions and 1555 deletions

View File

@@ -4,7 +4,8 @@ NODE_ENV=development
VITE_DEV=true VITE_DEV=true
# 请求路径 # 请求路径
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn' #VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
VITE_BASE_URL='http://localhost:48080'
# 上传路径 # 上传路径
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'

View File

@@ -33,14 +33,13 @@ export default ({ command, mode }) => {
open: env.VITE_OPEN === 'true', open: env.VITE_OPEN === 'true',
// 本地跨域代理. 目前注释的原因暂时没有用途server 端已经支持跨域 // 本地跨域代理. 目前注释的原因暂时没有用途server 端已经支持跨域
proxy: { proxy: {
['/call-api']: { ['/admin-api']: {
// target: env.VITE_BASE_URL, target: env.VITE_BASE_URL,
target: 'http://119.3.87.30:443',
ws: false, ws: false,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/call-api`), '') rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''),
} },
} },
}, },
// 项目使用的vite插件。 单独提取到build/vite/plugin中管理 // 项目使用的vite插件。 单独提取到build/vite/plugin中管理
plugins: createVitePlugins(), plugins: createVitePlugins(),

3120
yarn.lock

File diff suppressed because it is too large Load Diff