api 주소 변경
This commit is contained in:
parent
85e5e49327
commit
5afd5b881c
@ -18,7 +18,7 @@ export default function RoofSelect() {
|
||||
const { get } = useAxios()
|
||||
|
||||
useEffect(() => {
|
||||
get({ url: '/api/roof-material/v1.0/roof-materials' }).then((res) => {
|
||||
get({ url: '/api/roof-material/roof-material-infos' }).then((res) => {
|
||||
if (res.length === 0) {
|
||||
return
|
||||
}
|
||||
@ -31,7 +31,7 @@ export default function RoofSelect() {
|
||||
return
|
||||
}
|
||||
|
||||
get({ url: `/api/trestle/v1.0/trestles/${roofMaterialId}` }).then((res) => {
|
||||
get({ url: `/api/roof-material/roof-material-infos/${roofMaterialId}/trestles` }).then((res) => {
|
||||
if (res.length === 0) {
|
||||
return
|
||||
}
|
||||
@ -61,8 +61,7 @@ export default function RoofSelect() {
|
||||
if (!trestleId) {
|
||||
return
|
||||
}
|
||||
console.log(roofMaterialId, trestleId)
|
||||
get({ url: `/api/module/v1.0/modules/${roofMaterialId}/${trestleId}` }).then((res) => {
|
||||
get({ url: `/api/module/module-infos?roofMaterialId=${roofMaterialId}&trestleId=${trestleId}` }).then((res) => {
|
||||
if (res.length === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user