fix domain
This commit is contained in:
parent
c6321660e4
commit
6c50042361
2 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ export default function Defail(){
|
||||||
formdata.append('price', price)
|
formdata.append('price', price)
|
||||||
formdata.append('sale', sale)
|
formdata.append('sale', sale)
|
||||||
|
|
||||||
const req = await fetch("https://bitmap-service.docker.orb.local/api/bitmap", {
|
const req = await fetch("http://localhost:12002/api/bitmap", {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: formdata,
|
body: formdata,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ export default function Home(){
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
try{
|
try{
|
||||||
const response = await fetch('https://backend-service.docker.orb.local/list')
|
const response = await fetch('http://localhost:12001/list')
|
||||||
if(!response.ok){
|
if(!response.ok){
|
||||||
throw new Error('Network error')
|
throw new Error('Network error')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue