เก็บข้อมูลเพิ่ม

This commit is contained in:
setthawutttty 2025-05-14 09:28:49 +07:00
parent 9f92268087
commit 9688d7e22e

View file

@ -272,6 +272,7 @@ function getCommander() {
.get(config.API.searchCommander)
.then((res) => {
const data = res.data.result;
formCommand.author = data.fullname;
formCommand.commanderFullname = data.commanderFullname;
formCommand.commanderPosition = data.commanderPosition;
formCommand.commanderAboveFullname = data.commanderAboveFullname;
@ -314,9 +315,7 @@ watch(
/**lifecycle Hooks*/
onMounted(async () => {
const user = await tokenParsed();
if (user) {
formCommand.author = user.name;
}
try {
showLoader();