เก็บข้อมูลเพิ่ม
This commit is contained in:
parent
9f92268087
commit
9688d7e22e
1 changed files with 2 additions and 3 deletions
|
|
@ -272,6 +272,7 @@ function getCommander() {
|
||||||
.get(config.API.searchCommander)
|
.get(config.API.searchCommander)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
|
formCommand.author = data.fullname;
|
||||||
formCommand.commanderFullname = data.commanderFullname;
|
formCommand.commanderFullname = data.commanderFullname;
|
||||||
formCommand.commanderPosition = data.commanderPosition;
|
formCommand.commanderPosition = data.commanderPosition;
|
||||||
formCommand.commanderAboveFullname = data.commanderAboveFullname;
|
formCommand.commanderAboveFullname = data.commanderAboveFullname;
|
||||||
|
|
@ -314,9 +315,7 @@ watch(
|
||||||
/**lifecycle Hooks*/
|
/**lifecycle Hooks*/
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const user = await tokenParsed();
|
const user = await tokenParsed();
|
||||||
if (user) {
|
|
||||||
formCommand.author = user.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue