瀏覽代碼

URL

tags/Baseline_30082024_FRONTEND_UAT
cyril.tsui 1 年之前
父節點
當前提交
9e071674b2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/components/CreateInvoice/CreateInvoice.tsx

+ 2
- 1
src/components/CreateInvoice/CreateInvoice.tsx 查看文件

@@ -24,6 +24,7 @@ import ProjectTotalFee from "./ProjectTotalFee";
import { timestampToDateString } from "@/app/utils/formatUtil";
import dayjs from "dayjs";
import { getSession } from "next-auth/react"
import { BASE_API_URL } from "@/config/api";

const CreateInvoice: React.FC = ({
}) => {
@@ -117,7 +118,7 @@ const CreateInvoice: React.FC = ({
try {
// Make an API request to generate the JasperReport
const response = await fetch(`http://localhost:8090/api/invoices/pdf`, {
const response = await fetch(`${BASE_API_URL}/invoices/pdf`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',


Loading…
取消
儲存