Skip to content

Commit

Permalink
Improved: code by removing unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritika-Patel08 committed Mar 11, 2024
1 parent 0b1525f commit 9dcf358
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/views/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,10 @@ export default defineComponent({
},
data() {
return {
baseURL: process.env.VUE_APP_BASE_URL,
appInfo: (process.env.VUE_APP_VERSION_INFO ? JSON.parse(process.env.VUE_APP_VERSION_INFO) : {}) as any,
appVersion: ""
baseURL: process.env.VUE_APP_BASE_URL
}
},
mounted() {
this.appVersion = this.appInfo.branch ? (this.appInfo.branch + "-" + this.appInfo.revision) : this.appInfo.tag;
},
computed: {
...mapGetters({
userProfile: 'user/getUserProfile',
Expand Down Expand Up @@ -185,9 +181,6 @@ export default defineComponent({
'eComStore': this.userProfile.stores.find((store: any) => store.productStoreId == event.detail.value)
})
}
},
getDateTime(time: any) {
return DateTime.fromMillis(time).toLocaleString(DateTime.DATETIME_MED);
}
}
});
Expand Down

0 comments on commit 9dcf358

Please sign in to comment.