mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
fix bug display current openingDate in datepicker
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
import { datetimeToISO, ISOToDate} from 'ChillMainAssets/chill/js/date.js';
|
||||
import { datetimeToISO, dateToISO, ISOToDate, ISOToDatetime} from 'ChillMainAssets/chill/js/date.js';
|
||||
import { mapState, mapGetters } from 'vuex';
|
||||
|
||||
export default {
|
||||
@@ -37,13 +37,14 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
startDate() {
|
||||
console.log(datetimeToISO(this.$store.state.accompanyingCourse.openingDate))
|
||||
return datetimeToISO(this.$store.state.accompanyingCourse.openingDate)
|
||||
}
|
||||
// ...mapState({
|
||||
// startDate: state => dateToISO(state.accompanyingCourse.openingDate)
|
||||
// })
|
||||
// startDate() {
|
||||
// const date = ISOToDatetime(this.$store.state.accompanyingCourse.openingDate.datetime)
|
||||
// console.log(dateToISO(date))
|
||||
// // return datetimeToISO(this.$store.state.accompanyingCourse.openingDate)
|
||||
// }
|
||||
...mapState({
|
||||
startDate: state => dateToISO(ISOToDatetime(state.accompanyingCourse.openingDate.datetime))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user