Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复map组件中心经纬度负数异常和scale非法值异常 #446

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Conversation

licunhao1
Copy link

这个 PR 做了什么? (简要描述所做更改)

fix: 修复map组件中心经纬度负数异常和scale非法值异常

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix)

这个 PR 涉及以下平台:

  • Web 平台(H5)
  • 鸿蒙(harmony)

@@ -164,7 +164,7 @@ export default class PageView extends React.Component {
}

handleClickLatitude = async () => {
const latitude = /^\d+(\.\d+)?$/.test(this.state.lat) ? this.state.lat : ''
const latitude = /^-?\d+(\.\d+)?$/.test(this.state.lat.toString()) || this.state.lat === 0 ? this.state.lat : ''

Choose a reason for hiding this comment

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

非法值的异常是不是要在接口中判断,而不是在样例中判断

@@ -182,7 +182,7 @@ export default class PageView extends React.Component {
}

handleClickLongitude = async () => {
const longitude = /^\d+(\.\d+)?$/.test(this.state.lng) ? this.state.lng : ''
const longitude = /^-?\d+(\.\d+)?$/.test(this.state.lng.toString()) || this.state.lng === 0 ? this.state.lng : ''

Choose a reason for hiding this comment

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

实现中有非法值校验吗

@tangcq-code tangcq-code merged commit e9cf89b into handsomeliuyang:release-3.6.8-app Dec 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants