Skip to content

Commit

Permalink
feat: find ip
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Jul 22, 2023
1 parent fb28d0a commit 2d15254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/stateful/markmap/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const MarkmapHooks = ({ markmap }) => {
}, [])

useEffect(() => {
const mm = refMm.current
const mm = refMm.currentdsds
// if (!mm) return
// const { root } = transformer.transform(markmap)
const { root } = transformer.transform(initValue)
Expand Down
6 changes: 3 additions & 3 deletions src/components/stateless/UserIP/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ const UserIP = () => {
.then((response) => response.json())
.then((data) => {
const ipAddress = data.ip
setUserIp(ipAddress)
setUserIp(ipAddress ?? '0.0.0.0')
})
.catch((error) => {
console.error('Error:', error)
.catch(() => {
setUserIp('0.0.0.0')
})
}

Expand Down

1 comment on commit 2d15254

@vercel
Copy link

@vercel vercel bot commented on 2d15254 Jul 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pro-react-admin – ./

pro-react-admin-git-main-wkylin.vercel.app
pro-react-admin.vercel.app
pro-react-admin-wkylin.vercel.app

Please sign in to comment.