chore(report): 下线「系统管理 → 报表分析」菜单及其接口与开关
This commit is contained in:
@@ -10,13 +10,20 @@ function resolveBuildId() {
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '')
|
||||
// 以 vite.config 所在目录为基准读取 .env,避免「在仓库根目录跑 dev:clinical」
|
||||
// 时 cwd 不是 clinical-web 而读不到 .env.local。
|
||||
const configDir = fileURLToPath(new URL('.', import.meta.url))
|
||||
const env = loadEnv(mode, configDir, '')
|
||||
const buildId = resolveBuildId()
|
||||
const apiProxyTarget =
|
||||
process.env.VITE_API_PROXY_TARGET?.trim() ||
|
||||
env.VITE_API_PROXY_TARGET?.trim() ||
|
||||
'http://127.0.0.1:18080'
|
||||
|
||||
// 启动日志:直接告诉你 /api 到底被代理到了哪里,排查「没走真实接口」时用。
|
||||
// 显示 18080 说明 .env.local 没被读到;显示 ipad.shenynet.com 才是真实接口生效。
|
||||
console.log(`[vite] API 代理目标: ${apiProxyTarget}`)
|
||||
|
||||
return {
|
||||
plugins: [vue()],
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user