Sign in
canrd-outside
/
order-erp-front
·
Commits
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Network
Graphs
Milestones
Issues
0
Merge Requests
1
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
5225345496b0e66e7ddbc550ee9d7dbcea4a187a
Authored by
zuihou
2021-10-29 20:09:43 +0800
1 parent
a248e200
fix: 全局日期格式化缺少秒(大多数场景日期格式都需要携带秒!)
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/utils/dateUtil.ts
src/utils/http/axios/helper.ts
src/utils/dateUtil.ts
View file @
5225345
...
...
@@ -3,7 +3,7 @@
3
3
*/
4
4
import moment from 'moment';
5
5
6
-const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm
';
6
+const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm
:ss
';
7
7
const DATE_FORMAT = 'YYYY-MM-DD ';
8
8
9
9
export function formatToDateTime(
...
...
src/utils/http/axios/helper.ts
View file @
5225345
1
1
import { isObject, isString } from '/@/utils/is';
2
2
3
-const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm
';
3
+const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm
:ss
';
4
4
5
5
export function joinTimestamp<T extends boolean>(
6
6
join: boolean,
...
...