📌fix: 이미지 불러오기 기능 정리 및 로드 된 이미지 삭제 구현
This commit is contained in:
parent
74519ec069
commit
dff708d1d2
@ -91,10 +91,10 @@ export function useRefFiles() {
|
||||
type: 'confirm',
|
||||
confirmFn: () => {
|
||||
setRefImage(null)
|
||||
setCurrentCanvasPlan((prev) => ({ ...prev, bgFileName: null }))
|
||||
removeImage(currentCanvasPlan.id).then((res) => {
|
||||
console.log(res)
|
||||
})
|
||||
setCurrentCanvasPlan((prev) => ({ ...prev, bgImageName: null }))
|
||||
// removeImage(currentCanvasPlan.id).then((res) => {
|
||||
// console.log(res)
|
||||
// })
|
||||
},
|
||||
})
|
||||
}
|
||||
@ -109,9 +109,9 @@ export function useRefFiles() {
|
||||
confirmFn: () => {
|
||||
setMapPositionAddress('')
|
||||
setCurrentCanvasPlan((prev) => ({ ...prev, mapPositionAddress: null }))
|
||||
removeImage(currentCanvasPlan.id).then((res) => {
|
||||
console.log(res)
|
||||
})
|
||||
// removeImage(currentCanvasPlan.id).then((res) => {
|
||||
// console.log(res)
|
||||
// })
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user