refactor: handle the value of being crushed
This commit is contained in:
parent
ece9827d04
commit
481d9d4e9e
1 changed files with 3 additions and 4 deletions
|
|
@ -60,8 +60,9 @@ function calculate90DayNext(currentDate: Date | null | string) {
|
||||||
if (currentDate === null) return null;
|
if (currentDate === null) return null;
|
||||||
|
|
||||||
const date =
|
const date =
|
||||||
typeof currentDate === 'string' ? new Date(currentDate) : currentDate;
|
typeof currentDate === 'string'
|
||||||
|
? new Date(currentDate)
|
||||||
|
: new Date(currentDate.getTime());
|
||||||
date.setDate(date.getDate() + 90);
|
date.setDate(date.getDate() + 90);
|
||||||
|
|
||||||
return date;
|
return date;
|
||||||
|
|
@ -122,8 +123,6 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
{{ type }}
|
|
||||||
|
|
||||||
<div class="row col-12">
|
<div class="row col-12">
|
||||||
<div v-if="!hideTitle" class="col-12 q-pb-sm text-weight-bold text-body1">
|
<div v-if="!hideTitle" class="col-12 q-pb-sm text-weight-bold text-body1">
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue