UNPKG

jiku-ui

Version:

A Component Library for Vue.js.

24 lines (20 loc) 493 B
export function getAllProvince(fetch, apiUrl) { return fetch(apiUrl, { method: 'get' }); } export function getCities(fetch, apiUrl, provinceID) { return fetch(apiUrl + '?provinceID=' + provinceID, { method: 'get' }); } export function getCounties(fetch, apiUrl, cityID) { return fetch(apiUrl + '?cityID=' + cityID, { method: 'get' }); } export function getTowns(fetch, apiUrl, countyID) { return fetch(apiUrl + '?countyID=' + countyID, { method: 'get' }); }