ปรับแสดงคำสั่ง
This commit is contained in:
parent
56ebe0c1ee
commit
6e321708c2
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ interface DataCommandType {
|
|||
lastUpdateUserId: string;
|
||||
lastUpdatedAt: string | Date;
|
||||
name: string;
|
||||
subtitle: string;
|
||||
}
|
||||
|
||||
interface DataFileDownload {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue