แก้ env

This commit is contained in:
Kittapath 2023-12-24 02:02:34 +07:00
parent 7dfb3a2f47
commit 13a02a7f04
4 changed files with 10 additions and 4 deletions

View file

@ -3,6 +3,8 @@ import { ref } from "vue";
const env = ref<string>(process.env.NODE_ENV || "development");
export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG;
export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL;
// if (process.env.VUE_APP_TEST) {
// env = "test";
// }
@ -22,7 +24,7 @@ const config = ref<any>({
API_URI_ORG_TREE:
"https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json",
MEET_URI: "meet.frappet.com",
LINK_EVALUATE_PUBLISH: `${window.location.protocol}//${window.location.host}`,
LINK_EVALUATE_PUBLISH: apiUrlConfigPublish,
},
});

View file

@ -196,10 +196,10 @@ async function fetcheSigner(id: string) {
.finally(() => {
hideLoader();
});
fetchCheckSpec(id);
}
async function fetchCheckSpec(id: string) {
console.log("zxczx")
showLoader();
await http
.get(config.API.evaluationCheckspecByid(id))
@ -267,6 +267,7 @@ onMounted(async () => {
if (store.currentStep > 2) {
fetcheSigner(store.evaluateId);
}
fetchCheckSpec(store.evaluateId );
emit("update:form", formCommand, ref);
downloadFile("1-แบบพิจารณาคุณสมบัติบุคคล");
downloadFile("2-แบบแสดงรายละเอียดการเสนอผลงาน");