导入
build / build (push) Canceled after 15m21s

This commit is contained in:
wanghu
2026-10-19 09:40:13 +08:00
parent 796373f471
commit 44f85b2d48
+4 -1
View File
@@ -1,5 +1,6 @@
import { Method } from "alova"; import { Method } from "alova";
import { alovaInstance } from "@/utils/alova/alova-iview"; import { alovaInstance } from "@/utils/alova/alova-iview";
import conf from "@/assets/config/host.config";
import type { import type {
AllPlanItemVo, AllPlanItemVo,
AllPlanQuery, AllPlanQuery,
@@ -150,7 +151,9 @@ export async function importWeekPlan(
form.append("term", String(term)); form.append("term", String(term));
form.append("week", String(week)); 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", method: "POST",
body: form, body: form,
credentials: "include", credentials: "include",