Generowanie godziny

This commit is contained in:
2022-07-20 23:55:08 +02:00
parent 4a6366c04a
commit e5e755fa19
+4 -3
View File
@@ -3,13 +3,13 @@ import { defineStore } from 'pinia';
export const useStore = defineStore('store', { export const useStore = defineStore('store', {
state: () => { state: () => {
return { return {
chosenOrderType: 'OrderO', chosenOrderType: 'OrderN',
orderFooter: { orderFooter: {
stationName: '', stationName: '',
checkpointName: '', checkpointName: '',
hour: '', hour: new Date().toLocaleTimeString('pl-PL', { hour: '2-digit' }),
minutes: '', minutes: new Date().toLocaleTimeString('pl-PL', { minute: '2-digit' }),
dispatcherName: '', dispatcherName: '',
secondaryDispatcherName: '', secondaryDispatcherName: '',
}, },
@@ -179,3 +179,4 @@ export const useStore = defineStore('store', {
}, },
}); });