fix Call API province
This commit is contained in:
parent
2573e7e36d
commit
7e462f6e3e
2 changed files with 2 additions and 2 deletions
|
|
@ -127,7 +127,7 @@ const formData = reactive<FormData>({
|
|||
/** ดึงข้อมูล จังหวัด */
|
||||
function getProvince() {
|
||||
http
|
||||
.get(config.API.province)
|
||||
.get(config.API.orgProvince)
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ const expanded2 = ref<Array<string | null>>([]);
|
|||
*/
|
||||
function fetchProvince() {
|
||||
http
|
||||
.get(config.API.province)
|
||||
.get(config.API.orgProvince)
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
provinceOp.value = data.map((item: DataOption) => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue