แก้ env

This commit is contained in:
Kittapath 2023-12-24 02:02:17 +07:00
parent 6eed463eb5
commit b3e0db3da9
4 changed files with 10 additions and 6 deletions

View file

@ -2,6 +2,7 @@
import { ref } from "vue";
const env = ref<string>(process.env.NODE_ENV || "development");
export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL;
// if (process.env.VUE_APP_TEST) {
// env = "test";
// }

View file

@ -105,10 +105,10 @@ function getSigner() {
.get(config.API.evaluationSigner(id.value, 1))
.then((res) => {
const data = res.data.result;
formCommand.elementaryFullName = data.commanderFullname;
formCommand.elementaryPosition = data.commanderPosition;
formCommand.abovelevelFullname = data.commanderAboveFullname;
formCommand.abovelevelPosition = data.commanderAbovePosition;
formCommand.elementaryFullName = data == null ? "" : data.commanderFullname;
formCommand.elementaryPosition = data == null ? "" : data.commanderPosition;
formCommand.abovelevelFullname = data == null ? "" : data.commanderAboveFullname;
formCommand.abovelevelPosition = data == null ? "" : data.commanderAbovePosition;
})
.catch((e) => {
messageError($q, e);