ปรับหน้ารายละเอียดของผู้สอบผ่าน เเก้เป็นส่ง name แทน id

This commit is contained in:
STW_TTTY\stwtt 2024-05-16 15:43:18 +07:00
parent 507c94b955
commit 15738c7668
6 changed files with 33 additions and 27 deletions

View file

@ -81,12 +81,12 @@ const refreshData = async () => {
const fetchPrefix = async () => {
showLoader();
await http
.get(config.API.prefix)
.get(config.API.profileNewMetaMain)
.then((res) => {
const data = res.data.result;
let option: DataOption[] = [];
data.map((r: any) => {
option.push({ id: r.id.toString(), name: r.name.toString() });
data.prefixs.map((r: any) => {
option.push({ id: r.name.toString(), name: r.name.toString() });
});
Ops.value.prefixOps = option;
OpsFilter.value.prefixOps = option;