fix: update date formatting in VnJsonValue component to include hours, minutes, and seconds
gitea/salix-front/pipeline/pr-master Something is wrong with the build of this commit
Details
gitea/salix-front/pipeline/pr-master Something is wrong with the build of this commit
Details
This commit is contained in:
parent
c700521b37
commit
103835d08b
|
@ -1,6 +1,6 @@
|
|||
<script setup>
|
||||
import { watch } from 'vue';
|
||||
import { toDateString } from 'src/filters';
|
||||
import { toDateHourMinSec } from 'src/filters';
|
||||
|
||||
const props = defineProps({
|
||||
value: { type: [String, Number, Boolean, Object], default: undefined },
|
||||
|
@ -40,7 +40,9 @@ const updateValue = () => {
|
|||
break;
|
||||
case 'object':
|
||||
if (props.value instanceof Date) {
|
||||
t = toDateString(props.value);
|
||||
console.log('props.value: ', props.value);
|
||||
t = toDateHourMinSec(props.value);
|
||||
console.log('t: ', t);
|
||||
} else {
|
||||
t = props.value.toString();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue