From 44f85b2d480ce65017c50d6acdc1ce8eee67524b Mon Sep 17 00:00:00 2001 From: wanghu Date: Mon, 19 Oct 2026 09:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/module/workplan.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/module/workplan.ts b/src/api/module/workplan.ts index 12d686c..302c86a 100644 --- a/src/api/module/workplan.ts +++ b/src/api/module/workplan.ts @@ -1,5 +1,6 @@ import { Method } from "alova"; import { alovaInstance } from "@/utils/alova/alova-iview"; +import conf from "@/assets/config/host.config"; import type { AllPlanItemVo, AllPlanQuery, @@ -150,7 +151,9 @@ export async function importWeekPlan( form.append("term", String(term)); form.append("week", String(week)); - const resp = await fetch(`${WORKPLAN}/WeekPlanExcelImport`, { + // alova 实例的 baseURL 是 serviceHost(线上为 /work-week-plan), + // 原生 fetch 不经过它,必须手动带上,否则部署站 404 + const resp = await fetch(`${conf.serviceHost}${WORKPLAN}/WeekPlanExcelImport`, { method: "POST", body: form, credentials: "include",