แก้สมัครสอบ
This commit is contained in:
parent
c1cae5a785
commit
1580691d52
6 changed files with 73 additions and 71 deletions
|
|
@ -798,7 +798,7 @@ const fetchDistrict = async (id: string | null, position: string) => {
|
|||
await http
|
||||
.get(config.API.listDistrict(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
const data = res.data.result.districts;
|
||||
let option: DataOption[] = [];
|
||||
data.map((r: any) => {
|
||||
option.push({ id: r.id.toString(), name: r.name.toString() });
|
||||
|
|
@ -826,7 +826,7 @@ const fetchSubDistrict = async (id: string | null, position: string) => {
|
|||
await http
|
||||
.get(config.API.listSubDistrict(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
const data = res.data.result.subDistricts;
|
||||
let option: zipCodeOption[] = [];
|
||||
data.map((r: any) => {
|
||||
option.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue