Skip to content

Commit

Permalink
fix start date popup
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Dec 24, 2024
1 parent bda2195 commit e426a30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/sensor/SensorPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export default {
measurement: this.type,
isShowPath: false,
store: useStore(),
start: moment().format("YYYY-MM-DD"),
maxDate: moment().format("YYYY-MM-DD"),
provider: this.$route.params.provider,
rttime: null /* used for realtime view */,
Expand All @@ -161,12 +162,6 @@ export default {
};
},
computed: {
start() {
return this.startTime
? moment.unix(this.startTime).format("YYYY-MM-DD")
: moment().format("YYYY-MM-DD");
},
locale() {
return localStorage.getItem("locale") || this.$i18n.locale || "en";
},
Expand Down Expand Up @@ -438,10 +433,15 @@ export default {
},
log() {
this.updatert();
this.isLoad = false;
},
},
mounted() {
this.start = this.startTime
? moment.unix(this.startTime).format("YYYY-MM-DD")
: moment().format("YYYY-MM-DD");
this.updatert();
},
};
Expand Down

0 comments on commit e426a30

Please sign in to comment.