ปรับแสดงคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-30 15:38:43 +07:00
parent 56ebe0c1ee
commit 6e321708c2
2 changed files with 6 additions and 2 deletions

View file

@ -35,8 +35,11 @@ async function fetchCommandType() {
.get(config.API.commandType)
.then(async (res) => {
const data = await res.data.result;
listCommand.value = data;
commandOp.value = data;
listCommand.value = data.map((e: DataCommandType) => ({
id: e.id,
name: e.subtitle ? `${e.name}(${e.subtitle})` : `${e.name}`,
}));
commandOp.value = listCommand.value;
})
.catch((err) => {
messageError($q, err);