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