From 8713e5018f179f85d6398b3054d76e8d34da0218 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 00:41:40 +0800 Subject: [PATCH] updated --- frontend/.env | 1 + frontend/src/client/core/request.ts | 3 ++- frontend/src/routes/_layout/aboutUs.tsx | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/.env b/frontend/.env index 5be1e92..1d40685 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1 +1,2 @@ VITE_API_URL=https://localhost +VITE_IMAGE_URL=https://image.localhost diff --git a/frontend/src/client/core/request.ts b/frontend/src/client/core/request.ts index 6abb0e8..ad2389e 100644 --- a/frontend/src/client/core/request.ts +++ b/frontend/src/client/core/request.ts @@ -80,7 +80,8 @@ const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => { return substring }) - const url = config.BASE + path + let url = config.BASE + path + url = url.replace(/^http:\/\//i, 'https://') return options.query ? url + getQueryString(options.query) : url } diff --git a/frontend/src/routes/_layout/aboutUs.tsx b/frontend/src/routes/_layout/aboutUs.tsx index 7c8e059..8b68fe6 100644 --- a/frontend/src/routes/_layout/aboutUs.tsx +++ b/frontend/src/routes/_layout/aboutUs.tsx @@ -112,7 +112,7 @@ function AboutUsTable() { {parse(aboutUs.description) || "N/A"} - + {aboutUs.index}