Skip to content

Commit

Permalink
feat(frontend): mysql、spider库表校验规则调整 TencentBlueKing#6595
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Sep 9, 2024
1 parent c55c4fd commit 753a3f6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
</template>

<script setup lang="tsx">
import { format } from 'date-fns';
import { useI18n } from 'vue-i18n';

import TendbhaModel from '@services/model/mysql/tendbha';
Expand Down Expand Up @@ -178,7 +177,7 @@
const { t } = useI18n();
const globalBizsStore = useGlobalBizs();
const router = useRouter();
const formatDateToUTC = useTimeZoneFormat();
const { format: formatDateToUTC } = useTimeZoneFormat();

// 单据克隆
useTicketCloneInfo({
Expand Down Expand Up @@ -366,7 +365,7 @@
bk_biz_id: globalBizsStore.currentBizId,
details: {
...formdata,
timing: formatDateToUTC(format(new Date(formdata.timing), 'yyyy-MM-dd HH:mm:ss')),
timing: formatDateToUTC(formdata.timing.toISOString()),
infos: data,
},
};
Expand Down

0 comments on commit 753a3f6

Please sign in to comment.