@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user