Skip to content

Commit

Permalink
fix: location
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwinterLiu committed Oct 28, 2022
1 parent f383fe3 commit 59f42aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* **dashboard:** update v4.6.2 ([2f344d5](https://github.com/dgiot/dgiot-dashboard/commit/2f344d5c43660950738926aeac7b9f7be3f56a49))
* dgiot_grafana ([a9eb8ef](https://github.com/dgiot/dgiot-dashboard/commit/a9eb8ef9210bcba3b06905b37f3466015087204f))
* index ([84ec4c3](https://github.com/dgiot/dgiot-dashboard/commit/84ec4c3a0c03016b7724d37a5784ce46bcafb04e))
* yunweirenyuan ([f383fe3](https://github.com/dgiot/dgiot-dashboard/commit/f383fe3f64ec8ac5a1918ec9ac138e1b6f896fa8))



Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* **dashboard:** update v4.6.2 ([2f344d5](https://github.com/dgiot/dgiot-dashboard/commit/2f344d5c43660950738926aeac7b9f7be3f56a49))
* dgiot_grafana ([a9eb8ef](https://github.com/dgiot/dgiot-dashboard/commit/a9eb8ef9210bcba3b06905b37f3466015087204f))
* index ([84ec4c3](https://github.com/dgiot/dgiot-dashboard/commit/84ec4c3a0c03016b7724d37a5784ce46bcafb04e))
* yunweirenyuan ([f383fe3](https://github.com/dgiot/dgiot-dashboard/commit/f383fe3f64ec8ac5a1918ec9ac138e1b6f896fa8))



Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* **dashboard:** update v4.6.2 ([2f344d5](https://github.com/dgiot/dgiot-dashboard/commit/2f344d5c43660950738926aeac7b9f7be3f56a49))
* dgiot_grafana ([a9eb8ef](https://github.com/dgiot/dgiot-dashboard/commit/a9eb8ef9210bcba3b06905b37f3466015087204f))
* index ([84ec4c3](https://github.com/dgiot/dgiot-dashboard/commit/84ec4c3a0c03016b7724d37a5784ce46bcafb04e))
* yunweirenyuan ([f383fe3](https://github.com/dgiot/dgiot-dashboard/commit/f383fe3f64ec8ac5a1918ec9ac138e1b6f896fa8))



Expand Down
12 changes: 12 additions & 0 deletions src/views/DeviceCloud/manage/js/proddetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -3324,6 +3324,18 @@ export default {
this.$get_object('Product', this.productId)
.then((response) => {
if (response) {
this.productInfo = _.merge(response, {
decoder: { code: '' },
thing: { properties: [] },
config: {
address: response.config?.address || '余杭区良渚平高创业城c1座',
location: {
longitude:
response.config?.location?.longitude || '120.161324',
latitude: response.config?.location?.latitude || '30.262441',
},
},
})
this.productName = response.name
for (var key in response) {
this.productdetail[key] = response[key]
Expand Down

1 comment on commit 59f42aa

@vercel
Copy link

@vercel vercel bot commented on 59f42aa Oct 28, 2022

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:

dgiot-dashboard – ./

dgiot-dashboard-dgiot.vercel.app
dgiot-dashboard-git-master-dgiot.vercel.app
dgiot-dashboard.vercel.app

Please sign in to comment.