Merge branch 'main' of github.com:Frappet/bma-ehr-publish

This commit is contained in:
Kittapath 2023-12-23 13:18:15 +07:00
commit e02a2f91dd
3 changed files with 5 additions and 6 deletions

View file

@ -1,9 +1,8 @@
import type { StorageFile } from '@/interface/response/storage'
const API_URI = import.meta.env.VITE_API_URI_CONFIG
import config from "@/api";
export async function getDocumentList(volume: string, id: string) {
const res = await fetch(`${API_URI}/document/${volume}/${id}`, {
const res = await fetch(`${config.API_URI}/document/${volume}/${id}`, {
headers: {
Accept: 'application/json',
},
@ -20,7 +19,7 @@ export async function getDocumentInfo(
id: string,
file: string
) {
const res = await fetch(`${API_URI}/document/${volume}/${id}/${file}`, {
const res = await fetch(`${config.API_URI}/document/${volume}/${id}/${file}`, {
headers: {
Accept: 'application/json',
},

View file

@ -10,7 +10,7 @@ export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG
const config = ref<any>({
development: {
// API_URI: "https://localhost:7260/api",
API_URI: 'https://bma-ehr.frappet.synology.me/api/v1',
API_URI: 'https://bma-ehr.frappet.synology.me/api/v1/evaluation',
},
test: {
API_URI: 'http://localhost:5010/api/v1',

View file

@ -14,7 +14,7 @@ onMounted(async () => {
const result = await doc.info(
'เล่ม 2',
route.params.id as string,
'1-เอกสาร 2'
'1-เอกสารเล่ม 2'
)
if (result) {