แก้ env
This commit is contained in:
parent
6eed463eb5
commit
b3e0db3da9
4 changed files with 10 additions and 6 deletions
|
|
@ -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";
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue