Merge branch 'main' of github.com:Frappet/bma-ehr-publish
This commit is contained in:
commit
e02a2f91dd
3 changed files with 5 additions and 6 deletions
|
|
@ -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',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ onMounted(async () => {
|
|||
const result = await doc.info(
|
||||
'เล่ม 2',
|
||||
route.params.id as string,
|
||||
'1-เอกสาร 2'
|
||||
'1-เอกสารเล่ม 2'
|
||||
)
|
||||
|
||||
if (result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue