From 54b8280e6c09774599bd5fa42022cf1f80007a56 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 10 Jan 2025 14:38:55 +0700 Subject: [PATCH 1/2] fix --- src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index 9d1cf3a..b7b3f1d 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -2,7 +2,7 @@ import { ref } from 'vue' const env = ref(process.env.NODE_ENV || 'development') -export const apiUrlConfig = `${import.meta.env.VITE_API_URI_CONFIG}/api/v1` +export const apiUrlConfig = `${import.meta.env.VITE_API_URI_CONFIG}` // if (process.env.VUE_APP_TEST) { // env = "test"; // } From 30458f431582d75305ca4baf59989a8da5ab2c0f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 10 Jan 2025 14:45:50 +0700 Subject: [PATCH 2/2] fix api --- src/api/document.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/document.ts b/src/api/document.ts index a3cc4c7..5f92111 100644 --- a/src/api/document.ts +++ b/src/api/document.ts @@ -2,7 +2,7 @@ import type { StorageFile } from '@/interface/response/storage' import config from "@/api"; export async function getDocumentList(volume: string, id: string) { - const res = await fetch(`${config.API_URI}/document/${volume}/${id}`, { + const res = await fetch(`${config.API_URI}/evaluation/document/${volume}/${id}`, { headers: { Accept: 'application/json', }, @@ -19,7 +19,7 @@ export async function getDocumentInfo( id: string, file: string ) { - const res = await fetch(`${config.API_URI}/document/${volume}/${id}/${file}`, { + const res = await fetch(`${config.API_URI}/evaluation/document/${volume}/${id}/${file}`, { headers: { Accept: 'application/json', },